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/{name=projects/*/locations/*/triggers/*}: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 API endpoint runs a \u003ccode\u003eBuildTrigger\u003c/code\u003e at a specific source revision, supporting both regional and global triggers via different POST request formats.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a POST method utilizing gRPC Transcoding syntax to specify the trigger to run, found at \u003ccode\u003ehttps://cloudbuild.googleapis.com/v1/{name=projects/*/locations/*/triggers/*}:run\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003ename\u003c/code\u003e path parameter, which is a string defining the \u003ccode\u003eTrigger\u003c/code\u003e to run, formatted as \u003ccode\u003eprojects/{project}/locations/{location}/triggers/{trigger}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body needs to contain the \u003ccode\u003eprojectId\u003c/code\u003e, \u003ccode\u003etriggerId\u003c/code\u003e, and \u003ccode\u003esource\u003c/code\u003e, where \u003ccode\u003esource\u003c/code\u003e specifies the build source.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an \u003ccode\u003eOperation\u003c/code\u003e instance in the response body, and the operation needs the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.triggers.run\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\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/{name=projects/*/locations/*/triggers/*}:run`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\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/)."]]