Create a distribution group.
POST/api/v1/distribution-groupscontacts:write
Needs Create Distribution Groups and, when members are supplied, Edit Distribution Group Members. Refused when a group with that name already exists.
| Scope | contacts:write |
| Asynchronous | No |
| MCP tool | create_distribution_group |
| Portal permissions | create_distribution_groups |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | DistributionGroupCreateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json DistributionGroup 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 |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | already_exists, idempotency_in_progress | 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 | idempotency_key_reused, 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
DistributionGroup
| Field | Type | Required | Description |
|---|---|---|---|
active | boolean | Required | |
distribution_group_id | string | Required | |
members | array of DistributionMember or null | Required | The members, or null without View Distribution Group Members. |
name | string | Required |
DistributionGroupCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
members | array of DistributionMemberInput | Optional | The group's members; none when omitted. |
name | string | Required |
DistributionMember
| Field | Type | Required | Description |
|---|---|---|---|
contact_id | string or null | Required | |
default_action_request_id | string or null | Required | The action request a document sent to the group starts with, when one is set. |
type | string | Required | user or contact (an open enum): which of user_id or contact_id names the member. |
user_id | string or null | Required |
DistributionMemberInput
| Field | Type | Required | Description |
|---|---|---|---|
contact_id | string or null | Optional | |
default_action_request_id | string or null | Optional | The action request a document sent to the group starts with, when one is set. |
type | string | Optional | user or contact (an open enum): which of user_id or contact_id names the member. |
user_id | string or null | Optional |