You can call this operation to delete a role.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

POST /pop/v5/account/delete_role HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
RoleId Integer Yes 99999999

The ID of the role that you want to delete.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String 042F329B-F518-4CC1-****-**********

Examples

Sample requests

POST /pop/v5/account/delete_role HTTP/1.1
Common request headers
{
  "RoleId": 
}

Sample success responses

JSON format

{
    "Message": "delete successfully",
    "Code": 200
}

XML format

<Message>delete successfully</Message>
<Code>200</Code>

Error codes

For a list of error codes, visit the API Error Center.