List the audit history of a contact.
GET/api/v1/contacts/{contact_id}/audit-historyaudits:read
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
Changes to one contact (a person of an organisation), newest first: what the Contact details dialog's Audit button shows. Needs View Entity Audit History and View Contacts (View Organisations for an organisation's own row). The order is fixed. 422 unsupported_for_tenant when the company database records no audit trail.
| スコープ | audits:read |
| 非同期 | いいえ |
| MCP ツール | list_contact_audit_history |
| Portal の権限 | view_entity_audit_history |
| ページング | keyset |
| 既定の並び順 | -occurred_at, -stream_position |
| 並べ替えに使えるフィールド | occurred_at, stream_position |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
contact_id | path | string | 必須 | |
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 | AuditEntry の配列 | 必須 | |
next_cursor | string または null | 必須 | |
warnings | object の配列 | 必須 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
AuditChange
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
field | string | 必須 | |
label | string | 必須 | |
new | string または null | 必須 | |
old | string または null | 必須 |
AuditEntry
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
actor | UserRef | 必須 | |
audit_entry_id | string | 必須 | The audit row's own key. |
changes | AuditChange の配列 | 必須 | |
name | string または null | 必須 | |
occurred_at | string (date-time) | 必須 | |
operation | string | 必須 | insert, update or delete. |
row | object | 必須 | The stored row of a register change, keyed by the register's field names; null otherwise. |
source | string | 必須 | The record the change was made to (Document, Folder Assignment, …). |
stream_position | string | 必須 | The entry's place in the history, an opaque text that sorts as the list does: the tie-break for entries at the same occurred_at, and the list's unique sort key. |
transaction_number | string または null | 必須 | The database transaction that made the change, when recorded. |
UserRef
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
display_name | string | 必須 | |
kind | string: user, system, integration または string | 必須 | |
user_id | string または null | 必須 |