List the version history of a custom-field section.
GET/api/v1/custom-field-templates/{custom_field_template_id}/version-historyaudits:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | audits:read |
| 非同期 | いいえ |
| MCP ツール | list_custom_field_template_version_history |
| Portal の権限 | view_custom_field_versions |
| ページング | keyset |
| 既定の並び順 | -occurred_at |
| 並べ替えに使えるフィールド | occurred_at |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
custom_field_template_id | path | string | 必須 | |
owner_type | query | string | 必須 | 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 または null | 任意 | The owner's ID; required unless owner_type is direct_grid_link. |
row_id | query | string または null | 任意 | Narrow the history to one row of the section: needed for a direct_grid_link section, whose rows share one owner. |
limit | query | integer | 任意 | 既定値: 50; ≥ 1 |
cursor | query | string | 任意 | |
sort | query | string | 任意 | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json object |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
410 | cursor_expired | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | invalid_cursor, unsupported_for_tenant, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
200 の本文
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | CustomFieldVersion の配列 | 必須 | |
next_cursor | string または null | 必須 | |
warnings | object の配列 | 必須 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
AuditChange
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
field | string | 必須 | |
label | string | 必須 | |
new | string または null | 必須 | |
old | string または null | 必須 |
CustomFieldVersion
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
actor_name | string または null | 必須 | Who made the change as the audit trail names them; null when it does not. |
actor_source | string | 必須 | cdc (the change feed), entryperson (the row's own author) or unknown. |
occurred_at | string (date-time) | 必須 | |
rows | CustomFieldVersionRow の配列 | 必須 | The first rows the transaction touched (a bulk write lists only some); total_rows counts them all. |
total_rows | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
transaction_number | string | 必須 | The number of the transaction that recorded the change; where none is recorded, a number derived from the audit time. |
CustomFieldVersionRow
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
changes | AuditChange の配列 | 必須 | The fields that moved, with the section's field labels; inserts and deletes list every field. |
operation | string | 必須 | insert, update or delete. |
row_id | string または null | 必須 | 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 または null | 必須 | The row named as the History dialog names it; null when the audit trail gives no name. |