Skip to main content
POST
Link a canonical document to a record

Authorizations

Authorization
string
header
required

Passport bearer token authentication for legacy admin sessions.

Headers

Idempotency-Key
string
required

Request key; replay the same key only with the same payload.

Required string length: 8 - 128
Pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$

Path Parameters

document
string<uuid>
required

Document.

Body

application/json

Request fields accepted by this operation. Omitted optional properties retain the behavior described above.

expected_document_record_version
integer
required

Validation: required|integer|min:1.

Required range: x >= 1
expected_current_document_version_id
string<uuid> | null
required

Validation: present|nullable|uuid.

expected_current_document_version_number
integer | null
required

Validation: present|nullable|integer|min:1.

Required range: x >= 1
subject_type
string
required

Validation: required|string|max:128.

Maximum string length: 128
Pattern: ^[a-z][a-z0-9._:-]{0,127}$
subject_id
string
required

Validation: required|string|max:128.

Maximum string length: 128
relationship_type
string
required

Validation: required|string|max:64.

Maximum string length: 64
Pattern: ^[a-z][a-z0-9._:-]{0,63}$
is_primary
boolean
required

Validation: required|boolean.

Response

Link a canonical document to a record response.

contract_family
string
contract_version
string
command_receipt_id
string
content_directive
string
operation
string
outcome
string
idempotency_key_sha256
string
request_sha256
string
recorded_at
string<date-time>
result_sha256
string