POST/directory/users/custom-properties
ユーザーカスタムプロパティを登録する。 ドメイン単位で最大 50 個まで登録できる。
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
directory
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| domainId | integer | ドメイン ID required format : int32 |
| propertyName | string | ユーザーカスタムプロパティ名 required maxLength : 120 |
| displayName | string | ユーザーカスタムプロパティの表示名 required maxLength : 20 |
| i18nDisplayNames | array (I18nDisplayName) | ユーザーカスタムプロパティの表示名の多言語リスト minItems : 0 |
| propertyType | string | ユーザーカスタムプロパティタイプ
required Allowed values : STRING, LINK, INTEGER, DATE |
| displayOrder | integer | 表示順位 (重複許可) minimum : 1 format : int32 nullable : true |
| multiValued | boolean | 複数値の許可 default : false |
| options | array (UserCustomPropertyOption) | 選択肢リスト minItems : 2 |
| mandatory | boolean | 必須項目 default : false |
| readAccessType | string | 読み取り権限 default : ALL Allowed values : ADMIN_AND_SELF, ALL |
| writeAccessType | string | 書き込み権限 default : ADMIN Allowed values : ADMIN, ADMIN_AND_SELF |
| Property | Type | Description |
|---|---|---|
| language | string | 多言語コード Allowed values : ja_JP, ko_KR, zh_CN, zh_TW, en_US |
| name | string | 表示名 maxLength : 20 |
| Property | Type | Description |
|---|---|---|
| optionName | string | 選択肢名 maxLength : 100 |
| displayName | string | 選択肢表示名 maxLength : 20 |
| i18nDisplayNames | array (I18nDisplayName) | 選択肢表示名の多言語リスト minItems : 0 |
example
1{2 "domainId": 10000001,3 "propertyName": "string_single_option",4 "displayName": "趣味",5 "i18nDisplayNames": [6 {7 "language": "ja_JP",8 "name": "趣味"9 },10 {11 "language": "en_US",12 "name": "hobby"13 }14 ],15 "propertyType": "STRING",16 "displayOrder": 1,17 "multiValued": false,18 "options": [19 {20 "optionName": "option_piano",21 "displayName": "ピアノ"22 },23 {24 "optionName": "option_cooking",25 "displayName": "料理"26 }27 ],28 "mandatory": false,29 "readAccessType": "ALL",30 "writeAccessType": "ADMIN_AND_SELF"31}OK
| Property | Type | Description |
|---|---|---|
| domainId | integer | ドメイン ID required format : int32 |
| customPropertyId | string | ユーザーカスタムプロパティ ID
readOnly : true |
| propertyName | string | ユーザーカスタムプロパティ名 required maxLength : 120 |
| displayName | string | ユーザーカスタムプロパティの表示名 required maxLength : 20 |
| i18nDisplayNames | array (I18nDisplayName) | ユーザーカスタムプロパティの表示名の多言語リスト minItems : 0 |
| propertyType | string | ユーザーカスタムプロパティタイプ
required Allowed values : STRING, LINK, INTEGER, DATE |
| displayOrder | integer | 表示順位 (重複許可) required minimum : 1 format : int32 nullable : true |
| multiValued | boolean | 複数値の許可 required default : false |
| options | array (UserCustomPropertyOption) | 選択肢リスト minItems : 2 |
| mandatory | boolean | 必須項目 required default : false |
| readAccessType | string | 読み取り権限 required default : ALL Allowed values : ADMIN_AND_SELF, ALL |
| writeAccessType | string | 書き込み権限 required default : ADMIN Allowed values : ADMIN, ADMIN_AND_SELF |
| Property | Type | Description |
|---|---|---|
| language | string | 多言語コード Allowed values : ja_JP, ko_KR, zh_CN, zh_TW, en_US |
| name | string | 表示名 maxLength : 20 |
| Property | Type | Description |
|---|---|---|
| optionName | string | 選択肢名 maxLength : 100 |
| displayName | string | 選択肢表示名 maxLength : 20 |
| i18nDisplayNames | array (I18nDisplayName) | 選択肢表示名の多言語リスト minItems : 0 |
example
1{2 "domainId": 10000001,3 "customPropertyId": "customfd-fc09-4a57-ab38-03dc6c425e01",4 "propertyName": "string_single_option",5 "displayName": "趣味",6 "i18nDisplayNames": [7 {8 "language": "ja_JP",9 "name": "趣味"10 },11 {12 "language": "en_US",13 "name": "hobby"14 }15 ],16 "propertyType": "STRING",17 "displayOrder": 1,18 "multiValued": false,19 "options": [20 {21 "optionName": "option_piano",22 "displayName": "ピアノ"23 },24 {25 "optionName": "option_cooking",26 "displayName": "料理"27 }28 ],29 "mandatory": false,30 "readAccessType": "ALL",31 "writeAccessType": "ADMIN_AND_SELF"32}Bad Request