PUT/directory/user-types/{userTypeId}
Updates a user type.
Note
- The useUserType parameter for the domain must be set to "true" to use this API operation.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
directory
| Parameter | Type | Description |
|---|---|---|
| userTypeId | string | User type resource ID or external key. required example : employ2c-f321-47a6-ac11-e81fcc23a8c3 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| displayOrder | integer | Sort order. A negative or duplicate number is allowed. Based on this value, items are sorted in ascending order. required format : int32 |
| userTypeName | string | User type name. It must be unique within a domain. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . /. required maxLength : 100 |
| userTypeExternalKey | string | User type external key It must be unique within a tenant. maxLength : 100 nullable : true |
| i18nNames | array (i18nName) | Multi-language information. |
| userTypeCode | string | User type code. It can include any combination of alphabetic characters (A-Z, a-z), numbers (0-9), or underline symbols (_) and can be up to 50 characters long. It must start with an English letter. maxLength : 50 nullable : true |
| Property | Type | Description |
|---|---|---|
| name | string | Multilingual name required minLength : 1 maxLength : 100 |
| language | string | Language code required Allowed values : ko_KR, en_US, ja_JP, zh_CN, zh_TW |
example
1{2 "displayOrder": 1,3 "userTypeName": "UserType Name",4 "userTypeExternalKey": "USERTYPE_EXT_01",5 "i18nNames": [6 {7 "name": "English Name",8 "language": "en_US"9 }10 ],11 "userTypeCode": "code"12}OK
| Property | Type | Description |
|---|---|---|
| domainId | integer | User type's domain ID of user type required format : int32 |
| userTypeId | string | It is automatically assigned. readOnly : true |
| displayOrder | integer | Sort order. A negative or duplicate number is allowed. Based on this value, items are sorted in ascending order. required format : int32 |
| userTypeName | string | User type name. It must be unique within a domain. The allowed special characters are ! @ & ( ) - _ + [ ] { } , . /. required maxLength : 100 |
| userTypeExternalKey | string | User type external key It must be unique within a tenant. maxLength : 100 nullable : true |
| i18nNames | array (i18nName) | Multi-language information. |
| userTypeCode | string | User type code. It can include any combination of alphabetic characters (A-Z, a-z), numbers (0-9), or underline symbols (_) and can be up to 50 characters long. It must start with an English letter. maxLength : 50 nullable : true |
| Property | Type | Description |
|---|---|---|
| name | string | Multilingual name required minLength : 1 maxLength : 100 |
| language | string | Language code required Allowed values : ko_KR, en_US, ja_JP, zh_CN, zh_TW |
example
1{2 "domainId": 10000001,3 "userTypeId": "employ2c-f321-47a6-ac11-e81fcc23a8c3",4 "displayOrder": 1,5 "userTypeName": "UserType Name",6 "userTypeExternalKey": "USERTYPE_EXT_01",7 "i18nNames": [8 {9 "name": "English Name",10 "language": "en_US"11 }12 ],13 "userTypeCode": "code"14}Forbidden