Delete Resource Type


Delete resource types.

Request Format


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

Request Parameters (Query)


Name

Mandatory/Optional

Data Type

Description

orgId

Mandatory

String

OU ID.

Request Parameters (Body)


Name

Mandatory/Optional

Data Type

Description

code

Mandatory

Array

The codes of the resource types to be deleted.

Response Parameters


Name

Data Type

Description

data

Data Struct

The results of deleting resource types.

Data Struct


Name

Data Type

Description

success

Boolean

The result of deleting resource types. true for success, and false for failure.

Error Codes


Error Code

Description

31400

Required parameters are missing.

31404

resource types do not exist, or the OU does not acquire the application.

31408

Resource types cannot be deleted because the types contain resources.

31435

No permission to delete resource types.

Samples

Request Samples


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

method: POST

{
  "codes": ["your_resource_type_id_1", "your_resource_type_id_2"]
}

Return Samples


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