# Method: projects.locations.jobs.patch

- [HTTP request](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs/patch#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs/patch#body.aspect)

Updates a Job.

### HTTP request

`PATCH https://run.googleapis.com/v2/{job.name}`

### Path parameters

| Parameters ||
|---|---|
| `job.name` | `string` The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job} It takes the form `projects/{project}/locations/{location}/jobs/{job}`. |

### Query parameters

| Parameters ||
|---|---|
| `validateOnly` | `boolean` Indicates that the request should be validated and default values populated, without persisting the request or updating any resources. |
| `allowMissing` | `boolean` Optional. If set to true, and if the Job does not exist, it will create a new one. Caller must have both create and update permissions for this call if this is set to true. |

### Request body

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

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.operations#Operation`.

### Authorization scopes

Requires the following OAuth scope:

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

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