Skip to main content

List the version history of a custom-field section.

GET/api/v1/custom-field-templates/{custom_field_template_id}/version-historyaudits:read

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.

Scopeaudits:read
AsynchronousNo
MCP toollist_custom_field_template_version_history
Portal permissionsview_custom_field_versions
Pagingkeyset
Default order-occurred_at
Sort fieldsoccurred_at

Parameters​

NameInTypeRequiredDescription
custom_field_template_idpathstringRequired
owner_typequerystringRequiredWhat 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_idquerystring or nullOptionalThe owner's ID; required unless owner_type is direct_grid_link.
row_idquerystring or nullOptionalNarrow the history to one row of the section: needed for a direct_grid_link section, whose rows share one owner.
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, unsupported_for_tenant, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of CustomFieldVersionRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

AuditChange​

FieldTypeRequiredDescription
fieldstringRequired
labelstringRequired
newstring or nullRequired
oldstring or nullRequired

CustomFieldVersion​

FieldTypeRequiredDescription
actor_namestring or nullRequiredWho made the change as the audit trail names them; null when it does not.
actor_sourcestringRequiredcdc (the change feed), entryperson (the row's own author) or unknown.
occurred_atstring (date-time)Required
rowsarray of CustomFieldVersionRowRequiredThe first rows the transaction touched (a bulk write lists only some); total_rows counts them all.
total_rowsintegerRequired≥ -2147483648; ≤ 2147483647
transaction_numberstringRequiredThe number of the transaction that recorded the change; where none is recorded, a number derived from the audit time.

CustomFieldVersionRow​

FieldTypeRequiredDescription
changesarray of AuditChangeRequiredThe fields that moved, with the section's field labels; inserts and deletes list every field.
operationstringRequiredinsert, update or delete.
row_idstring or nullRequiredThe 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_labelstring or nullRequiredThe row named as the History dialog names it; null when the audit trail gives no name.