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 >>

  • If not specified, the original name will be retained.

  • If a new name is specified, the original name will be completely overwritten, including all internationalized names. For example, this update only specifies the name of the default language. After the update, only the default name will be retained, and the original internationalized names such as Chinese and English will be cleared.

Response Parameters


Name

Data Type

Description

success

Boolean

Whether the resource was edited successfully. true indicates success, false indicates 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 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
  }
}