Documents
Link a document
Links the document to one target of this kind. Linking the same target again has no effect. Set replace to change an existing link of this kind.
put/documents/{documentId}/links/{kind}
Request
- Base URL: https://next-api.saturation.io/v1
- URL: https://next-api.saturation.io/v1/documents/{documentId}/links/{kind}
- Auth: HTTP bearer
Request body
Example request
{
"targetId": "txn_8f2a1c9e",
"phaseId": "txn_8f2a1c9e"
}Response
The document with updated links.
Example response
{
"id": "doc_4b1f0a7c",
"name": "vendor-invoice-0425.pdf",
"mimeType": "application/pdf",
"size": 184320,
"status": "ready",
"workspaceId": "ws_71aa",
"pageCount": 2,
"classification": "invoice",
"coarseType": "financial",
"folderId": "fld_9c2d",
"projectId": "prj_71aa",
"links": [
{
"kind": "transaction",
"id": "txn_8f2a1c9e"
}
],
"createdAt": "2026-05-28T14:03:11Z",
"updatedAt": "2026-05-28T14:03:40Z"
}Changes
No recorded changes to this operation across all 4 revisions of this API.