TheTriggername 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 followingIAMpermission on the specified resourceprojectId:
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 ofBuildTrigger.
Response body
If successful, the response body contains an instance ofBuildTrigger.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-17 UTC."],[[["\u003cp\u003eThis webpage details how to update a \u003ccode\u003eBuildTrigger\u003c/code\u003e using its project ID and trigger ID.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a \u003ccode\u003ePATCH\u003c/code\u003e method to the specified URL, following gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eUpdating a \u003ccode\u003eBuildTrigger\u003c/code\u003e requires specifying \u003ccode\u003eprojectId\u003c/code\u003e and \u003ccode\u003etriggerId\u003c/code\u003e as query parameters, as well as optional \u003ccode\u003eupdateMask\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request and response bodies both use the \u003ccode\u003eBuildTrigger\u003c/code\u003e resource type.\u003c/p\u003e\n"],["\u003cp\u003eThe process requires OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.triggers.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates a `BuildTrigger` by its project ID and trigger ID.\n\n### HTTP request\n\n`PATCH https://cloudbuild.googleapis.com/v1/{trigger.resourceName=projects/*/locations/*/triggers/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [BuildTrigger](/build/docs/api/reference/rest/v1/projects.locations.triggers#BuildTrigger).\n\n### Response body\n\nIf successful, the response body contains an instance of [BuildTrigger](/build/docs/api/reference/rest/v1/projects.locations.triggers#BuildTrigger).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]