POST/orgunits/{orgUnitId}/move
組織を移動する。
注意
- 組織の登録/更新/部分更新/移動/削除 API は、1 ドメインにつき必ずシングルスレッドで、1 秒以上の間隔を開け、順番に呼び出すことを推奨します。
Access Token を指定します。
指定の方法や Access 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 |
|---|---|---|
| displayOrder | integer | 組織の表示順 required minimum : 1 format : int32 |
| parentOrgUnitId | string | 移動先の上位組織を特定する ID
|
example
1{2 "parentOrgUnitId": "parernt9-ffda-4395-24a8-03fb9e22e051",3 "displayOrder": 14}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": null33 }34 ],35 "membersAllowedToUseOrgUnitEmailAsSender": [36 {37 "userId": "e7b4f7da-f82c-4284-13e7-030f3b4c7569",38 "userExternalKey": null39 }40 ]41}Bad Request
Not Found