Help Center> Config> API Reference> API> Compliance> Deleting an Assignment

Deleting an Assignment

Function

This API is used to delete an assignment based on its ID.

URI

DELETE /v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}

Table 1 Path parameters

Parameter

Mandatory

Type

Description

domain_id

Yes

String

Specifies the account ID.

Maximum length: 36

policy_assignment_id

Yes

String

Specifies the assignment ID.

Maximum length: 36

Request Parameters

None

Response Parameters

Status code: 400

Table 2 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 403

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 404

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Status code: 500

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Example Request

None

Example Response

None

Status Codes

Status Code

Description

200

Operation succeeded.

400

Invalid parameter.

403

Authentication failed or you do not have the operation permission.

404

No assignments found.

500

Internal server error.

Error Codes

See Error Codes.