Update Resource Type


Update resource type information.

Request Format


POST https://{apigw-address}/app-portal-service/v2.3/resource/type/update

Request Parameters (Query)


Name Mandatory/Optional Data Type Description
orgId Mandatory String OU ID.

Request Parameters (Body)


Name Mandatory/Optional Data Type Description
name Optional Object The new name of the resource type in its respective locale’s language. For more details on the structure and locales supported, see Internationalized name struct.
code Mandatory String The code of the resource type to be updated.

Response Parameters


Name Data Type Description
data Data Struct The result of updating the resource type.

Data Struct


Name Data Type Description
success Boolean The result of updating the resource type. true for success, and false for failure.

Error Codes


Error Code Description
31400 Required parameters are missing.
31404 The resource type does not exist, or the OU does not acquire the application.
31435 No permission to update the resource type.

Samples

Request Sample


url: /app-portal-service/v2.3/resource/type/update?orgId=your_org_ID

method: POST

{
  "name": {
    "i18nValue": {
      "en_US": "your_resource_type_name_en",
      "zh_CN": "your_resource_type_name_zh"
    },
    "defaultValue": "your_resource_type_name"
  },
  "code": "your_resource_type_id"
}

Return Sample


{
  "code": 0,
  "message": "",
  "data": {
    "success":true
  }
}