To create a job, we recommend using projects.locations.jobs.create with a regional endpoint. Using projects.jobs.create is not recommended, as your job will always start in us-central1.
Do not enter confidential information when you supply string values using the API.
HTTP request
POST https://dataflow.googleapis.com/v1b3/projects/{projectId}/locations/{location}/jobs
[[["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-04-30 UTC."],[[["\u003cp\u003eThis API creates a Cloud Dataflow job, with the recommendation to use \u003ccode\u003eprojects.locations.jobs.create\u003c/code\u003e with a regional endpoint for job creation.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request for creating a job is a \u003ccode\u003ePOST\u003c/code\u003e request to the specified URL, which uses gRPC Transcoding syntax and requires both \u003ccode\u003eprojectId\u003c/code\u003e and \u003ccode\u003elocation\u003c/code\u003e as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eThere are query parameters such as \u003ccode\u003eview\u003c/code\u003e and \u003ccode\u003ereplaceJobId\u003c/code\u003e, to request information or to specify a job to be replaced, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an instance of \u003ccode\u003eJob\u003c/code\u003e, and a successful response will also contain a newly created instance of \u003ccode\u003eJob\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this API requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/compute\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.jobs.create\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\nCreates a Cloud Dataflow job.\n\nTo create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`.\n\nDo not enter confidential information when you supply string values using the API.\n\n### HTTP request\n\n`POST https://dataflow.googleapis.com/v1b3/projects/{projectId}/locations/{location}/jobs`\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 [Job](/dataflow/docs/reference/rest/v1b3/projects.jobs#Job).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Job](/dataflow/docs/reference/rest/v1b3/projects.jobs#Job).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/compute`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]