Updated on 2026-11-27 GMT+08:00

Authorizing an Event

Function

This API is used to authorize an event. When the system reports an event, you need to authorize it.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

POST /v1/{project_id}/cloud-phone/scheduled-events/{event_id}/authorize

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

event_id

Yes

String

Specifies the event ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the user token.

It can be obtained by calling an Identity and Access Management (IAM) API. The value of X-Subject-Token in the response header is the user token.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

authorization_type

Yes

String

Specifies the authorization type. Value range:

maintenance: maintenance

redeploy: redeployment

not_before

No

String

Specifies the scheduled start time. Only events of the maintenance type support this parameter. The scheduled time must be at least 5 minutes later than the current time. An empty string indicates that the event will be executed immediately.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

request_id

String

Specifies the unique request ID.

Example Requests

Authorizing an event

POST https://{CPH Endpoint}/v1/{project_id}/cloud-phone/scheduled-events/{event_id}/authorize

{
  "authorization_type" : "maintenance",
  "not_before" : "2026-06-08T10:43:00Z"
}

Example Responses

Status code: 200

{
  "request_id" : "95f25ae6120643ac9e0effd633b37b98"
}

Status Codes

Status Code

Description

200

ok

Error Codes

See Error Codes.