**Full name**: projects.locations.schemas.patch

Updates a schema. Editable fields are:

- `displayName`
- `labels`

### HTTP request

Choose a location:
<button value="global" default="">global</button> <button value="us">us</button> <button value="eu">eu</button> <button value="asia-south1">asia-south1</button> <button value="asia-southeast1">asia-southeast1</button> <button value="northamerica-northeast1">northamerica-northeast1</button> <button value="australia-southeast1">australia-southeast1</button> <button value="europe-west2">europe-west2</button> <button value="europe-west3">europe-west3</button>   
`PATCH https://documentai.googleapis.com/v1/{schema.name}`

<br />

### Path parameters

| Parameters ||
|---|---|
| `schema.name` | `string` Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` It takes the form `projects/{project}/locations/{location}/schemas/{schema}`. |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#field-mask` format)`` Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - `displayName` - `labels` 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/document-ai/docs/reference/rest/v1/projects.locations.schemas#NextSchema`.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1/projects.locations.schemas#NextSchema`.

### 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).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `documentai.schemas.update`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).