Change an unsent entry of a document's distribution list.
PATCH/api/v1/documents/{document_id}/distribution-entries/{distribution_entry_id}documents:write
Only what is sent changes: the recipient (type with user_id or contact_id) and action_request_id. An entry that has been sent is 409 conflict. Needs Edit Document Distribution Entries and read access to the document.
| Scope | documents:write |
| Asynchronous | No |
| MCP tool | update_document_distribution_entry |
| Portal permissions | edit_document_distribution_entries |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
document_id | path | string | Required | |
distribution_entry_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | DistributionEntryPatchInput |
application/merge-patch+json | DistributionEntryPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json DistributionEntry 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 | already_exists, conflict | 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
DistributionEntry
| Field | Type | Required | Description |
|---|---|---|---|
action_request_id | string or null | Required | The action request the recipient's email asks for, when one applies. |
contact_id | string or null | Required | |
distribution_entry_id | string | Required | |
distribution_id | string or null | Required | The email this entry was sent in; null while unsent. |
downloaded_at | string (date-time) or null | Required | When the recipient followed a download link; null if not yet. |
email_address | string or null | Required | The address the document is sent to; null when the user or contact has none. |
is_sent | boolean | Required | |
queued_at | string (date-time) or null | Required | |
read_at | string (date-time) or null | Required | When the recipient opened the email; null if not yet. |
sent_at | string (date-time) or null | Required | When the mail provider accepted the email; null while unsent. |
type | string | Required | user or contact (an open enum): which of user_id or contact_id names the recipient. |
user_id | string or null | Required |
DistributionEntryPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
action_request_id | string or null | Optional | |
contact_id | string or null | Optional | |
distribution_entry_id | string or null | Optional | |
distribution_id | string or null | Optional | |
downloaded_at | string (date-time) or null | Optional | |
email_address | string or null | Optional | |
is_sent | boolean or null | Optional | |
queued_at | string (date-time) or null | Optional | |
read_at | string (date-time) or null | Optional | |
sent_at | string (date-time) or null | Optional | |
type | string or null | Optional | |
user_id | string or null | Optional |