List the custom field templates a document is locked on.
Each lock: the template, the reason a workflow gave, who locked it and when, and whether it is enforced (an enforced lock refuses writes to that template's rows of the document; an advisory one only greys them out). Needs View Custom Field Locks and read access to the document, as the Portal's custom-field panel does.
| |
|---|
| Scope | documents:read |
| Asynchronous | No |
| MCP tool | list_document_custom_field_locks |
| Portal permissions | view_custom_field_locks |
| Paging | keyset |
| Default order | custom_field_template_id |
| Sort fields | custom_field_template_id |
Parameters
| Name | In | Type | Required | Description |
|---|
document_id | path | string | Required | |
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
sort | query | string | Optional | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
200 body
| Field | Type | Required | Description |
|---|
items | array of CustomFieldLock | Required | |
next_cursor | string or null | Required | |
warnings | array of object | Required | |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
CustomFieldLock
| Field | Type | Required | Description |
|---|
custom_field_template_id | string | Required | |
is_enforced | boolean | Required | true: writes to the template's rows of this document are refused. false: the lock only greys them out. |
locked_at | string (date-time) or null | Required | |
locked_by | UserRef or null | Required | Who locked it (the person the workflow ran for); null when not recorded. |
reason | string or null | Required | The reason the lock node gave; null when it gave none. |
UserRef
| Field | Type | Required | Description |
|---|
display_name | string | Required | |
kind | string: user, system, integration or string | Required | |
user_id | string or null | Required | |