POST/orgunits
Adds a team.
Caution
- The following API operations must be called once per second in a single thread, in the order they are listed, for each domain: Add a team, Update a team, Update part of a team, and Move a team.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
directory
orgunit
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| domainId | integer | Domain ID required format : int32 |
| orgUnitExternalKey | string | Customer's external key Some special characters, maxLength : 100 nullable : true |
| orgUnitName | string | Team name. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . /. required maxLength : 100 |
| i18nNames | array (OrgUniti18nName) | List of multilingual names |
| string | Team email address (localpart@domain or localpart@group). It is required to update a team.
maxLength : 90 | |
| description | string | Team description maxLength : 160 nullable : true |
| visible | boolean | Indicates whether to make the team visible. default : true |
| parentOrgUnitId | string | Parent team ID
nullable : true |
| displayOrder | integer | Ordering between the teams that share the same parent team. required minimum : 1 format : int32 |
| aliasEmails | array (string) | List of email aliases
minItems : 0 maxItems : 20 |
| canReceiveExternalMail | boolean | Indicates whether to receive external emails. default : false |
| useMessage | boolean | Indicates whether to use the Message Room features.
default : false |
| useNote | boolean | Indicates whether to use the Message Room Note feature.
default : false |
| useCalendar | boolean | Indicates whether to use the Message Room Calendar feature.
default : false |
| useTask | boolean | Indicates whether to use the Message Room Task feature.
default : false |
| useFolder | boolean | Indicates whether to use the Message Room Folder feature.
default : false |
| useServiceNotification | boolean | Indicates whether to use service notifications. default : false |
| membersAllowedToUseOrgUnitEmailAsRecipient | array (OrgUnitAllowedMember) | List of members who can send an email to the team email address. minItems : 0 |
| Property | Type | Description |
|---|---|---|
| language | string | Language required Allowed values : ko_KR, ja_JP, en_US, zh_CN, zh_TW |
| name | string | Multilingual name The allowed special characters are ! @ & ( ) - _ + [ ] { } , . /. required maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| userId | string | Member ID required |
example
1{2 "domainId": 10000001,3 "orgUnitExternalKey": "externalKeyValue",4 "orgUnitName": "name01",5 "i18nNames": [6 {7 "language": "en_US",8 "name": "Team01"9 }10 ],11 "email": "team01@example.com",12 "description": "desc",13 "visible": true,14 "parentOrgUnitId": "parernt9-ffda-4395-24a8-03fb9e22e051",15 "displayOrder": 1,16 "aliasEmails": [17 "alias@example.com"18 ],19 "canReceiveExternalMail": true,20 "useMessage": true,21 "useNote": true,22 "useCalendar": true,23 "useTask": true,24 "useFolder": true,25 "useServiceNotification": true,26 "membersAllowedToUseOrgUnitEmailAsRecipient": [27 {28 "userId": "e7b4f7da-f82c-4284-13e7-030f3b4c7569"29 }30 ],31 "displayLevel": 132}OK
| Property | Type | Description |
|---|---|---|
| domainId | integer | Domain ID required format : int32 |
| orgUnitId | string | Resource ID readOnly : true |
| orgUnitExternalKey | string | Customer's external key Some special characters, maxLength : 100 nullable : true |
| orgUnitName | string | Team name. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . /. required maxLength : 100 |
| i18nNames | array (OrgUniti18nName) | List of multilingual names |
| string | Team email address (localpart@domain or localpart@group). It is required to update a team.
maxLength : 90 | |
| description | string | Team description maxLength : 160 nullable : true |
| visible | boolean | Indicates whether to make the team visible. default : true |
| parentOrgUnitId | string | Parent team ID
nullable : true |
| parentExternalKey | string | Parent team external key readOnly : true nullable : true |
| displayOrder | integer | Ordering between the teams that share the same parent team. It is required only when a team is added. It is ignored when a team is updated. minimum : 1 format : int32 |
| displayLevel | integer | Team depth (starting from 1) minimum : 1 format : int32 readOnly : true |
| aliasEmails | array (string) | List of email aliases.
minItems : 0 maxItems : 20 |
| canReceiveExternalMail | boolean | Indicates whether to receive external emails. default : false |
| useMessage | boolean | Indicates whether to use the Message Room features.
default : false |
| useNote | boolean | Indicates whether to use the Message Room Note feature.
default : false |
| useCalendar | boolean | Indicates whether to use the Message Room Calendar feature.
default : false |
| useTask | boolean | Indicates whether to use the Message Room Task feature.
default : false |
| useFolder | boolean | Indicates whether to use the Message Room Folder feature.
default : false |
| useServiceNotification | boolean | Indicates whether to use service notifications. default : false |
| membersAllowedToUseOrgUnitEmailAsRecipient | array (OrgUnitAllowedMember) | List of members who can send an email to the team email address. minItems : 0 |
| membersAllowedToUseOrgUnitEmailAsSender | array (OrgUnitAllowedMember) | List of members who can use the team email address as their From address. Only team members are allowed. minItems : 0 |
| Property | Type | Description |
|---|---|---|
| language | string | Language required Allowed values : ko_KR, ja_JP, en_US, zh_CN, zh_TW |
| name | string | Multilingual name The allowed special characters are ! @ & ( ) - _ + [ ] { } , . /. required maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| userId | string | Member ID required |
| userExternalKey | string | Customer's external key readOnly : true nullable : true |
example
1{2 "domainId": 10000001,3 "orgUnitId": "orgunitf-f27f-4af8-27e1-03817a911417",4 "orgUnitExternalKey": "externalKeyValue",5 "orgUnitName": "name01",6 "i18nNames": [7 {8 "language": "en_US",9 "name": "Team01"10 }11 ],12 "email": "team01@example.com",13 "description": "desc",14 "visible": true,15 "parentOrgUnitId": "parernt9-ffda-4395-24a8-03fb9e22e051",16 "parentExternalKey": "parentExtKeyValue",17 "displayOrder": 1,18 "displayLevel": 1,19 "aliasEmails": [20 "alias@example.com"21 ],22 "canReceiveExternalMail": true,23 "useMessage": true,24 "useNote": true,25 "useCalendar": true,26 "useTask": true,27 "useFolder": true,28 "useServiceNotification": true,29 "membersAllowedToUseOrgUnitEmailAsRecipient": [30 {31 "userId": "e7b4f7da-f82c-4284-13e7-030f3b4c7569",32 "userExternalKey": null33 }34 ],35 "membersAllowedToUseOrgUnitEmailAsSender": [36 {37 "userId": "e7b4f7da-f82c-4284-13e7-030f3b4c7569",38 "userExternalKey": null39 }40 ]41}Bad Request