Method: projects.locations.capacityCommitments.patch

Updates an existing capacity commitment.

Only plan and renewalPlan fields can be updated.

Plan can only be changed to a plan of a longer commitment period. Attempting to change to a plan with shorter commitment period will fail with the error code google.rpc.Code.FAILED_PRECONDITION.

HTTP request

PATCH https://bigqueryreservation.googleapis.com/v1/{capacityCommitment.name=projects/*/locations/*/capacityCommitments/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
capacityCommitment.name

string

Output only. The resource name of the capacity commitment, e.g., projects/myproject/locations/US/capacityCommitments/123

Query parameters

Parameters
updateMask

string (FieldMask format)

Standard field mask for the set of fields to be updated.

A comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of CapacityCommitment.

Response body

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

Authorization Scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.

Try it!