Skip to main content
PUT
Save a template document's fields

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-workspace-id
string

The workspace the key was issued for, as returned by GET /api/v1/workspaces. Optional: omitting it acts in the key's workspace, and any other id is rejected with 401.

Path Parameters

templateId
string
required

Body

application/json
documentId
string
required

The document whose fields to change. It must be attached to the package or template in the path; any other document is a 404.

Minimum string length: 1
Example:

"cmg1p4k2a0007v9x0d8n3f5t2"

ops
object[]
required

The changes to apply, in order, as one transaction: if any operation fails, none is kept. An empty list is accepted and changes nothing.

Response

Success

data
object
required