Skip to content
LogoLogo

Attach a completed upload to a Document

Attach a completed upload to a Document

POST/api/v1/documents/{document_id}/attachments

Establishes durable Document ownership before content stores the attachment identifier. The idempotent link remains while current or historical revisions may reference it and is removed with Document purge or explicit attachment deletion.

Path Parameters

document_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Request Body

application/json
attachment_idRequired
string <uuid>

Opaque Assign-owned UUIDv7 identifier. Clients must not derive meaning from it.

Example0198ac5e-f9b7-7000-8000-000000000001

Responses