List the version history of a custom-field section.
The transactions that changed a form or grid section of a custom-field template for one document, folder or owning row, newest first, with the fields that moved: what the History dialog of the section shows. limit is how many of the newest transactions to read (at most 500: 422 out_of_range above it); the Portal's history has no cursor, so next_cursor is always null. Needs View Custom Field Versions and the right to read the owner (403 otherwise). 422 unsupported_for_tenant when the company database keeps no audit trail.
| |
|---|
| Scope | audits:read |
| Asynchronous | No |
| MCP tool | list_custom_field_template_version_history |
| Portal permissions | view_custom_field_versions |
| Paging | keyset |
| Default order | -occurred_at |
| Sort fields | occurred_at |
Parameters
| Name | In | Type | Required | Description |
|---|
custom_field_template_id | path | string | Required | |
owner_type | query | string | Required | What owns the section's rows: document, folder, register_row (a row of another register, whose ID is owner_id) or direct_grid_link (a gridlink with no owner; owner_id is then left out). |
owner_id | query | string or null | Optional | The owner's ID; required unless owner_type is direct_grid_link. |
row_id | query | string or null | Optional | Narrow the history to one row of the section: needed for a direct_grid_link section, whose rows share one owner. |
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 CustomFieldVersion | 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
AuditChange
| Field | Type | Required | Description |
|---|
field | string | Required | |
label | string | Required | |
new | string or null | Required | |
old | string or null | Required | |
CustomFieldVersion
| Field | Type | Required | Description |
|---|
actor_name | string or null | Required | Who made the change as the audit trail names them; null when it does not. |
actor_source | string | Required | cdc (the change feed), entryperson (the row's own author) or unknown. |
occurred_at | string (date-time) | Required | |
rows | array of CustomFieldVersionRow | Required | The first rows the transaction touched (a bulk write lists only some); total_rows counts them all. |
total_rows | integer | Required | ≥ -2147483648; ≤ 2147483647 |
transaction_number | string | Required | The number of the transaction that recorded the change; where none is recorded, a number derived from the audit time. |
CustomFieldVersionRow
| Field | Type | Required | Description |
|---|
changes | array of AuditChange | Required | The fields that moved, with the section's field labels; inserts and deletes list every field. |
operation | string | Required | insert, update or delete. |
row_id | string or null | Required | The row's own ID in the section's template; null for a form section's single set of values when the audit trail does not name it. |
row_label | string or null | Required | The row named as the History dialog names it; null when the audit trail gives no name. |