PATCH/orgunits/{orgUnitId}
組織を部分更新する。
注意
- 組織の登録/更新/部分更新/移動 API は、1ドメインにつき必ずシングルスレッドで1秒に1回、順番通りに呼び出すことを推奨します。
- 組織の移動は、組織の移動を使用します。
Authorization URL - https://auth.worksmobile.com/oauth2/v2.0/authorize
Token URL - https://auth.worksmobile.com/oauth2/v2.0/token
Refresh URL - https://auth.worksmobile.com/oauth2/v2.0/token
directory
orgunit
Parameter | Type | Description |
---|---|---|
orgUnitId | string | 組織を特定するID (URLエンコードする)
required example : orgunitf-f27f-4af8-27e1-03817a911417 |
Header | type | Description |
---|---|---|
Authorization | string | Bearer {token} required |
Content-Type | string | application/json required example : application/json |
Property | Type | Description |
---|---|---|
domainId | integer | ドメインID format : int32 |
orgUnitExternalKey | string | 組織のExternalKey 「%」、「\」、「#」、「/」、「?」の特殊文字は利用不可。 maxLength : 100 nullable : true |
orgUnitName | string | 組織名 maxLength : 100 |
i18nNames | array (OrgUnitI18nName) | 多言語名リスト |
string | 組織メールアドレス(組織を更新する際は必須)
maxLength : 90 | |
description | string | 組織説明 maxLength : 160 nullable : true |
visible | boolean | 組織の公開可否 (true/false)
default : true |
aliasEmails | array (string) | 組織のサブメールアドレスのリスト(アドバンスト/ベーシック/プレミアムプランのみ登録できる) minItems : 0 maxItems : 20 |
canReceiveExternalMail | boolean | 外部メールの受信可否フラグ default : false |
useMessage | boolean | チームトークルームの利用フラグ default : false |
useNote | boolean | チームノートの利用フラグ default : false |
useCalendar | boolean | チームカレンダーの利用フラグ default : false |
useTask | boolean | チームタスクの利用フラグ default : false |
useFolder | boolean | チームフォルダの利用フラグ default : false |
useServiceNotification | boolean | サービス通知送信フラグ default : false |
membersAllowedToUseOrgUnitEmailAsRecipient | array (OrgUnitAllowedMember) | 組織メールアドレスでメールを受信可能なメンバーのリスト minItems : 0 |
membersAllowedToUseOrgUnitEmailAsSender | array (OrgUnitAllowedMember) | 送信アドレスとして使用可能なメンバーのリスト minItems : 0 |
Property | Type | Description |
---|---|---|
language | string | 多言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
name | string | 多言語名 required maxLength : 100 |
Property | Type | Description |
---|---|---|
userId | string | ユーザーID(userId) required |
example
1{
2 "domainId": 10000001,
3 "orgUnitName": "組織01",
4 "visible": true
5}
OK
Property | Type | Description |
---|---|---|
domainId | integer | ドメインID required format : int32 |
orgUnitId | string | 組織ID
readOnly : true |
orgUnitExternalKey | string | 組織のExternalKey 「%」、「\」、「#」、「/」、「?」の特殊文字は利用不可。 maxLength : 100 nullable : true |
orgUnitName | string | 組織名 required maxLength : 100 |
i18nNames | array (OrgUnitI18nName) | 多言語名リスト |
string | 組織メールアドレス(組織を更新する際は必須)
maxLength : 90 | |
description | string | 組織説明 maxLength : 160 nullable : true |
visible | boolean | 組織公開フラグ default : true |
parentOrgUnitId | string | 上位組織ID
nullable : true |
parentExternalKey | string | 上位組織のExternalKey readOnly : true nullable : true |
displayOrder | integer | 組織の表示順 A minimum : 1 format : int32 |
displayLevel | integer | 組織の階層(depth, 1から開始) minimum : 1 format : int32 readOnly : true |
aliasEmails | array (string) | 組織のサブメールアドレスのリスト(アドバンスト/ベーシック/プレミアムプランのみ登録可) minItems : 0 maxItems : 20 |
canReceiveExternalMail | boolean | 外部メールの受信可否フラグ default : false |
useMessage | boolean | チームトークルームの利用フラグ default : false |
useNote | boolean | チームノートの利用フラグ default : false |
useCalendar | boolean | チームカレンダーの利用フラグ default : false |
useTask | boolean | チームタスクの利用フラグ default : false |
useFolder | boolean | チームフォルダの利用フラグ default : false |
useServiceNotification | boolean | サービス通知送信フラグ default : false |
membersAllowedToUseOrgUnitEmailAsRecipient | array (OrgUnitAllowedMember) | 組織メールアドレス宛にメールを送信可能なメンバーのリスト minItems : 0 |
membersAllowedToUseOrgUnitEmailAsSender | array (OrgUnitAllowedMember) | 組織メールアドレスを送信元としてメールを送信可能なメンバーのリスト minItems : 0 |
Property | Type | Description |
---|---|---|
language | string | 多言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
name | string | 多言語名 required maxLength : 100 |
Property | Type | Description |
---|---|---|
userId | string | ユーザーID(userId) required |
userExternalKey | string | ユーザーのExternalKey readOnly : true nullable : true |
example
1{
2 "domainId": 10000001,
3 "orgUnitId": "orgunitf-f27f-4af8-27e1-03817a911417",
4 "orgUnitExternalKey": "externalKeyValue",
5 "orgUnitName": "組織01",
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": null
33 }
34 ],
35 "membersAllowedToUseOrgUnitEmailAsSender": [
36 {
37 "userId": "e7b4f7da-f82c-4284-13e7-030f3b4c7569",
38 "userExternalKey": null
39 }
40 ]
41}
Bad Request
Not Found