Replace the people a document is copied to.
POST/api/v1/documents/{document_id}/ccs/replacedocuments:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | documents:write |
| 非同期 | いいえ |
| MCP ツール | replace_document_ccs |
| Portal の権限 | edit_document_recipients |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
document_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | CarbonCopySetRequestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json CarbonCopySet または 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
CarbonCopy
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
cc_id | string | 必須 | |
contact | object または null | 必須 | The contact of the organisation the copy names; null for the organisation on its own. |
organisation | object または null | 必須 |
CarbonCopyInputInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
contact | object または null | 任意 | A contact; its organisation comes with it. |
organisation | object または null | 任意 | An organisation, for a copy that names no person. Leave out when contact is given. |
CarbonCopySet
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
count | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
document_id | string | 必須 | |
items | CarbonCopy の配列 | 必須 |
CarbonCopySetRequestInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | CarbonCopyInputInput の配列 | 必須 | The whole set, in the order to keep. |