Runs a BuildTrigger at a particular source revision.
To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex. v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global triggers.
HTTP request
POST https://cloudbuild.googleapis.com/v1/projects/{projectId}/triggers/{triggerId}:run
[[["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 endpoint runs a \u003ccode\u003eBuildTrigger\u003c/code\u003e at a specified source revision, supporting both regional/global triggers with location-specific or global-only URL paths.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request utilizes a \u003ccode\u003ePOST\u003c/code\u003e method with a defined URL structure including project and trigger IDs as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a project ID and a trigger ID, while the \u003ccode\u003ename\u003c/code\u003e of the trigger, which includes project, location, and trigger, is used as a query parameter, requiring \u003ccode\u003ecloudbuild.builds.create\u003c/code\u003e permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe request body expects an instance of \u003ccode\u003eRepoSource\u003c/code\u003e, and a successful response will contain an instance of \u003ccode\u003eOperation\u003c/code\u003e.\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.run\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\nRuns a `BuildTrigger` at a particular source revision.\n\nTo run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex. v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global triggers.\n\n### HTTP request\n\n`POST https://cloudbuild.googleapis.com/v1/projects/{projectId}/triggers/{triggerId}:run`\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 [RepoSource](/build/docs/api/reference/rest/v1/RepoSource).\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/build/docs/api/reference/rest/Shared.Types/Operation).\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/)."]]