Method: projects.approvalRequests.approve

Approves a request and returns the updated ApprovalRequest.

Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.

HTTP request

POST https://accessapproval.googleapis.com/v1/{name=projects/*/approvalRequests/*}:approve

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Name of the approval request to approve.

Authorization requires the following IAM permission on the specified resource name:

  • accessapproval.requests.approve

Request body

The request body contains data with the following structure:

JSON representation
{
  "expireTime": string
}
Fields
expireTime

string (Timestamp format)

The expiration time of this approval.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Response body

If successful, the response body contains an instance of ApprovalRequest.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.