- [HTTP request](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/create#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/create#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/create#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/create#body.request_body)
- [Response body](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/create#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/create#body.aspect)
- [Try it!](https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.locations.jobs/create#try-it)

Creates a Dataflow job.

To 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`.

Do not enter confidential information when you supply string values using the API.

### IAM Permissions

1. Requires the `dataflow.jobs.create` permission on the project.
2. `resourcemanager.projects.get` (Specifically required for regional endpoints to resolve regional resource metadata)

### HTTP request

Choose an endpoint:
global   
`POST https://dataflow.googleapis.com/v1b3/projects/{projectId}/locations/{location}/jobs`

<br />

The URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `projectId` | `string` The ID of the Cloud Platform project that the job belongs to. |
| `location` | `string` The [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains this job. |

### Query parameters

| Parameters ||
|---|---|
| `view` | ``enum (`https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/JobView`)`` The level of information requested in response. |
| `replaceJobId` | `string` Deprecated. This field is now in the Job message. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#Job`.

### Response body

If successful, the response body contains a newly created instance of `https://docs.cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#Job`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/compute`
- `
  https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).