Updated on 2025-11-17 GMT+08:00

Rejecting Service Tickets

Function

This API is used to reject service tickets.

Calling Method

For details, see Calling APIs.

URI

POST /v1/{project_id}/security/openapi/permission-approve/batch-reject

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain the project ID, see Project ID and Account ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

workspace

Yes

String

Workspace ID. For details about how to obtain the workspace ID, see Instance ID and Workspace ID.

X-Auth-Token

Yes

String

IAM token, which is obtained by calling the IAM API for obtaining a user token (value of X-Subject-Token in the response header). This parameter is mandatory for token authentication.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

reason

No

String

Approval/Rejection reason

ids

No

Array of strings

IDs of service tickets

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

[items]

Array of ApproveResult objects

Batch service ticket review result

Table 5 ApproveResult

Parameter

Type

Description

id

String

Service ticket ID

status

String

Review result, which can be SUCCESS or FAIL

message

String

Error message

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

ok

400

Bad Request