Update Resource¶
Update resource information.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.3/resource/update
Request Parameters (Query)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
orgId |
Mandatory |
String |
OU ID. |
Request Parameters (Body)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
id |
Mandatory |
String |
The ID of the resource to be updated. |
name |
Optional |
Object |
The new name of the resource in its respective locale’s language. For more details on the structure and locales supported, see Internationalized name struct. |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Data Struct |
The result of updating the resource. |
Data Struct¶
Name |
Data Type |
Description |
---|---|---|
success |
Boolean |
The result of updating the resource. true for success, and false for failure. |
Error Codes¶
Error Codes |
Description |
---|---|
31400 |
Required parameters are missing, or the resource name is invalid. |
31404 |
The resource does not exist, or the OU does not acquire the application. |
Samples¶
Request Sample¶
url: /app-portal-service/v2.3/resource/update?orgId=your_org_ID
method: POST
{
"id": "your_resource_id"
"name": {
"i18nValue": {
"zh_CN": "your_resource_name_zh"
"en_US": "your_resource_name_en",
},
"defaultValue": "your_resource_name"
},
}
Return Sample¶
{
"code": 0,
"message": "",
"data": {
"success": true
}
}