# Method: projects.tenants.patch

- [HTTP request](https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants/patch#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants/patch#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants/patch#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants/patch#body.request_body)
- [Response body](https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants/patch#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants/patch#body.aspect)
- [Try it!](https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants/patch#try-it)

Updates specified tenant.

### HTTP request

`PATCH https://jobs.googleapis.com/v4/{tenant.name=projects/*/tenants/*}`

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

### Path parameters

| Parameters ||
|---|---|
| `tenant.name` | `string` Required during tenant update. The resource name for a tenant. This is generated by the service when a tenant is created. The format is "projects/{projectId}/tenants/{tenantId}", for example, "projects/foo/tenants/bar". |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` Strongly recommended for the best service experience. If `https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants/patch#body.QUERY_PARAMETERS.update_mask` is provided, only the specified fields in `tenant` are updated. Otherwise all the fields are updated. A field mask to specify the tenant fields to be updated. Only top level fields of `https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants#Tenant` are supported. This is a comma-separated list of fully qualified names of fields. Example: `"user.displayName,photo"`. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants#Tenant`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/talent-solution/job-search/docs/reference/rest/v4/projects.tenants#Tenant`.

### Authorization scopes

Requires one of the following OAuth scopes:

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

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