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.
[[["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 via a \u003ccode\u003ePATCH\u003c/code\u003e request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eprojectId\u003c/code\u003e and \u003ccode\u003etriggerId\u003c/code\u003e are required path parameters to identify the \u003ccode\u003eBuildTrigger\u003c/code\u003e to be updated, with \u003ccode\u003eprojectId\u003c/code\u003e requiring \u003ccode\u003ecloudbuild.builds.create\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdateMask\u003c/code\u003e is an optional query parameter that allows for partial updates to the \u003ccode\u003eBuildTrigger\u003c/code\u003e, specifying which fields to modify.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a \u003ccode\u003eBuildTrigger\u003c/code\u003e instance, and a successful response will also include a \u003ccode\u003eBuildTrigger\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.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/projects/{projectId}/triggers/{triggerId}`\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/)."]]