Update Resource Type¶
Update the information of the resource type.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.3/resource/type/update
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Required/Optional |
Data Type |
Description |
---|---|---|---|---|
orgId |
Query |
Required |
String |
OU ID. How to get orgId >> |
Request Parameters (Body)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
name |
Optional |
Object |
The new name of the resource type in multiple languages. Internationalized name struct >>
|
code |
Required |
String |
The code of the resource type to be updated. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
success |
Boolean |
Whether the resource type was edited successfully. |
Error Codes¶
Error Code |
Description |
---|---|
31400 |
Required parameters are missing. |
31404 |
The resource type does not exist, or the OU does not obtain 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
}
}