Skip to main content

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.

Scopedocuments:write
AsynchronousNo
MCP toolreplace_document_ccs
Portal permissionsedit_document_recipients

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonCarbonCopySetRequestInput

Responses​

StatusDescriptionBody
200Success.application/json CarbonCopySet or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409lockedapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

CarbonCopy​

FieldTypeRequiredDescription
cc_idstringRequired
contactobject or nullRequiredThe contact of the organisation the copy names; null for the organisation on its own.
organisationobject or nullRequired

CarbonCopyInputInput​

FieldTypeRequiredDescription
contactobject or nullOptionalA contact; its organisation comes with it.
organisationobject or nullOptionalAn organisation, for a copy that names no person. Leave out when contact is given.

CarbonCopySet​

FieldTypeRequiredDescription
countintegerRequired≥ -2147483648; ≤ 2147483647
document_idstringRequired
itemsarray of CarbonCopyRequired

CarbonCopySetRequestInput​

FieldTypeRequiredDescription
itemsarray of CarbonCopyInputInputRequiredThe whole set, in the order to keep.