PATCH/directory/user-types/{userTypeId}

利用権限タイプを部分更新する。

  • ドメインの利用権限タイプ設定が有効である必要がある。

Authorization

oauth2

Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。

Scope

directory

HTTP Request

PATCHhttps://www.worksapis.com/v1.0/directory/user-types/{userTypeId}

Path Parameters

ParameterTypeDescription
userTypeId string 

利用権限タイプを特定する ID (URL エンコードする)

  • 利用権限タイプ ID (userTypeId)
  • 利用権限タイプの ExternalKey (externalKey:{userTypeExternalKey})

required
example : employ2c-f321-47a6-ac11-e81fcc23a8c3 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
displayOrder integer 

表示順位 (重複許可)


format : int32 
userTypeName string 

利用権限タイプ名
ドメイン内で一意
許容される特殊文字: !@&()-_+[]{},./


maxLength : 100 
userTypeExternalKey string 

利用権限タイプの ExternalKey
テナント内で一意になること
利用できない特殊文字: %#/?


maxLength : 100
nullable : true 
i18nNames array (I18nName) 

多国語名リスト
[管理者画面 > 基本設定 > 会社情報 > 多国語設定] で指定された項目の多国語のみ表示される。

 
userTypeCode string 

利用権限タイプコード
英字 (A ~ Z、a ~ z)、数字 (0 ~ 9)、underscore (_) が利用でき、最大 50 文字まで指定できる。
英字で始めなければならない。


maxLength : 50
nullable : true 

I18nName

PropertyTypeDescription
name string 

多国語表示名


required
minLength : 1
maxLength : 100 
language string 

多国語言語コード


required
Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW 

Request Example

example

1{2  "domainId": 10000001,3  "displayOrder": 1,4  "userTypeName": "利用権限タイプ01",5  "userTypeExternalKey": "USERTYPE_EXT_01",6  "i18nNames": [7    {8      "name": "English Name",9      "language": "en_US"10    }11  ],12  "userTypeCode": "code"13}

Response

HTTP 200

OK

PropertyTypeDescription
domainId integer 

ドメイン ID


required
format : int32 
userTypeId string 

利用権限タイプ ID

  • 利用権限タイプのリソース ID
  • 登録時に自動発行されるユニーク ID

readOnly : true 
displayOrder integer 

表示順位 (重複許可)


required
format : int32 
userTypeName string 

利用権限タイプ名
ドメイン内で一意
許容される特殊文字: !@&()-_+[]{},./


required
maxLength : 100 
userTypeExternalKey string 

利用権限タイプの ExternalKey
テナント内で一意になること
利用できない特殊文字: %#/?


maxLength : 100
nullable : true 
i18nNames array (I18nName) 

多国語名リスト
[管理者画面 > 基本設定 > 会社情報 > 多国語設定] で指定された項目の多国語のみ表示される。

 
userTypeCode string 

利用権限タイプコード
英字 (A ~ Z、a ~ z)、数字 (0 ~ 9)、underscore (_) が利用でき、最大 50 文字まで指定できる。
英字で始めなければならない。


maxLength : 50
nullable : true 

I18nName

PropertyTypeDescription
name string 

多国語表示名


required
minLength : 1
maxLength : 100 
language string 

多国語言語コード


required
Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW 

Response Example

example

1{2  "domainId": 10000001,3  "userTypeId": "employ2c-f321-47a6-ac11-e81fcc23a8c3",4  "displayOrder": 1,5  "userTypeName": "利用権限タイプ02",6  "userTypeExternalKey": "USERTYPE_EXT_01",7  "i18nNames": [8    {9      "name": "English Name",10      "language": "en_US"11    }12  ],13  "userTypeCode": "code"14}

HTTP 403

Forbidden