Method: projects.locations.triggers.patch

Stay organized with collections Save and categorize content based on your preferences.

Updates a BuildTrigger by its project ID and trigger ID.

This API is experimental.

HTTP request

PATCH https://cloudbuild.googleapis.com/v1/{trigger.resourceName=projects/*/locations/*/triggers/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
trigger.resourceName

string

The Trigger name with format: projects/{project}/locations/{location}/triggers/{trigger}, where {trigger} is a unique identifier generated by the service.

Query 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.

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.