Replace the people a document is copied to.
POST/api/v1/documents/{document_id}/ccs/replacedocuments:write
The body is the whole set, kept in array order; an empty list clears it. Each item names a contact (its organisation comes with it) or an organisation on its own. Needs Edit Document Recipients and an edit grant on the unlocked document, with Add Document Ccs when the set adds a copy and Remove Document Ccs when it drops one. The saved set is shown with View Document Ccs; without it the answer is the write receipt.
| Scope | documents:write |
| Asynchronous | No |
| MCP tool | replace_document_ccs |
| Portal permissions | edit_document_recipients |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
document_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | CarbonCopySetRequestInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json CarbonCopySet or object |
400 | invalid_version, malformed_json | 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 |
409 | locked | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | 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 |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
CarbonCopy
| Field | Type | Required | Description |
|---|---|---|---|
cc_id | string | Required | |
contact | object or null | Required | The contact of the organisation the copy names; null for the organisation on its own. |
organisation | object or null | Required |
CarbonCopyInputInput
| Field | Type | Required | Description |
|---|---|---|---|
contact | object or null | Optional | A contact; its organisation comes with it. |
organisation | object or null | Optional | An organisation, for a copy that names no person. Leave out when contact is given. |
CarbonCopySet
| Field | Type | Required | Description |
|---|---|---|---|
count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
document_id | string | Required | |
items | array of CarbonCopy | Required |
CarbonCopySetRequestInput
| Field | Type | Required | Description |
|---|---|---|---|
items | array of CarbonCopyInputInput | Required | The whole set, in the order to keep. |