Skip to main content

Add a distribution group's members to a document's distribution list.

POST/api/v1/documents/{document_id}/distribution-entries/importdocuments:write

Queues every member of the saved distribution group (list_distribution_groups) that is not already on the list, each with the action request the group gives it. The answer lists the entries added and counts the members skipped as already queued. Needs Create Document Distribution Entries and View Distribution Group Members, View Document Distributions to show the entries added, and read access to the document.

Scopedocuments:write
AsynchronousNo
MCP toolimport_document_distribution_entries
Portal permissionscreate_document_distribution_entries, view_distribution_group_members

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonDistributionGroupImportInput

Responses​

StatusDescriptionBody
200Success.application/json DistributionEntriesImported
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
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_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​

DistributionEntriesImported​

FieldTypeRequiredDescription
itemsarray of DistributionEntryRequiredThe entries added, in the group's member order.
skipped_countintegerRequiredMembers that were already on the list. ≥ -2147483648; ≤ 2147483647

DistributionEntry​

FieldTypeRequiredDescription
action_request_idstring or nullRequiredThe action request the recipient's email asks for, when one applies.
contact_idstring or nullRequired
distribution_entry_idstringRequired
distribution_idstring or nullRequiredThe email this entry was sent in; null while unsent.
downloaded_atstring (date-time) or nullRequiredWhen the recipient followed a download link; null if not yet.
email_addressstring or nullRequiredThe address the document is sent to; null when the user or contact has none.
is_sentbooleanRequired
queued_atstring (date-time) or nullRequired
read_atstring (date-time) or nullRequiredWhen the recipient opened the email; null if not yet.
sent_atstring (date-time) or nullRequiredWhen the mail provider accepted the email; null while unsent.
typestringRequireduser or contact (an open enum): which of user_id or contact_id names the recipient.
user_idstring or nullRequired

DistributionGroupImportInput​

FieldTypeRequiredDescription
distribution_group_idstringRequiredThe saved group whose members to add.