Method: projects.triggers.patch

Updates a BuildTrigger by its project ID and trigger ID.

HTTP request

PATCH https://cloudbuild.googleapis.com/v1/projects/{projectId}/triggers/{triggerId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
projectId

string

Required. ID of the project that owns the trigger.

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

  • cloudbuild.builds.create
triggerId

string

Required. ID of the BuildTrigger to update.

Query parameters

Parameters
updateMask

string (FieldMask format)

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

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

Request body

The request body contains an instance of BuildTrigger.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.