Update Resource¶
Update the information of the resource.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.3/resource/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  | 
|---|---|---|---|
id  | 
Required  | 
String  | 
The ID of the resource to be updated.  | 
name  | 
Optional  | 
Object  | 
The new name of the resource in multiple languages. Internationalized name struct >> 
  | 
Response Parameters¶
Name  | 
Data Type  | 
Description  | 
|---|---|---|
success  | 
Boolean  | 
Whether the resource was edited successfully.   | 
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 obtain 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
  }
}