Groups / Create

Creates new group..

Route: /api/{tenant:minlength(2)}/v{version:apiVersion}/groups

Method: POST

Authorisation: Minimum role: ADMIN

Request Arguments
Name Type Source
inputDTO_groupBody

  Request body example

Response object

Response status: 200 (OK)

Response type: DTO_group

Wrapper: DTO_response_wrap

Other response statuses: 400 (BadRequest), 403 (Forbidden)

  Response body example

DTO_group
NameTypeReadOnlyDescription
group_usersDTO_reference_user[]Group users
group_adminsDTO_reference_user[]Group admins
mailboxesDTO_reference[]ReadOnlyMailboxes
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
idInt32ReadOnlyLeave empty on input
nameStringName
unique_keyStringMain email key (unique_key@tenant.deskhero.com) Used as forward address, and default group email
forward_to_emailStringReadOnlyForward to email
typeENUM group_typeReadOnlyType
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
ENUM group_type
ValueNameDescription
0UNKNOWNUNKNOWN
1CUSTOMCustom
2SYSTEM_EVERYONESys everyone