POST/directory/custom-fields
カスタムフィールドを登録する。
ドメイン単位で最大 5 個まで登録できる。
注意
この API は2026年7月下旬を目処に提供終了を予定しています。今後は ユーザーカスタムプロパティの登録 を使用してください。
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 |
| customFieldExternalKey | string | カスタムフィールドキー (更新不可) maxLength : 100 nullable : true |
| customFieldName | string | カスタムフィールド名 required maxLength : 20 |
| customFieldType | string | カスタムフィールドタイプ (更新不可)
required Allowed values : STRING, LINK |
| displayOrder | integer | 表示順位 (重複許可) format : int32 |
example
1{2 "domainId": 10000001,3 "customFieldExternalKey": "CUSTOMFIELDEXT01",4 "customFieldName": "custom01",5 "customFieldType": "LINK",6 "displayOrder": 17}OK
| Property | Type | Description |
|---|---|---|
| domainId | integer | ドメイン ID required format : int32 |
| customFieldId | string | カスタムフィールド ID
readOnly : true |
| customFieldExternalKey | string | カスタムフィールドキー (更新不可) maxLength : 100 nullable : true |
| customFieldName | string | カスタムフィールド名 required maxLength : 20 |
| customFieldType | string | カスタムフィールドタイプ (更新不可)
required Allowed values : STRING, LINK |
| displayOrder | integer | 表示順位 (重複許可) format : int32 |
example
1{2 "domainId": 10000001,3 "customFieldId": "customfd-fc09-4a57-ab38-03dc6c425e09",4 "customFieldExternalKey": "CUSTOMFIELDEXT01",5 "customFieldName": "custom01",6 "customFieldType": "LINK",7 "displayOrder": 18}Bad Request