**Full name**: projects.locations.processors.setDefaultProcessorVersion

Set the default (active) version of a `https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/Processor` that will be used in `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/process#google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument` and `https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors/batchProcess#google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments`.

### 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>   
`POST https://documentai.googleapis.com/v1beta3/{processor}:setDefaultProcessorVersion`

<br />

### Path parameters

| Parameters ||
|---|---|
| `processor` | `string` Required. The resource name of the `https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/Processor` to change default version. It takes the form `projects/{project}/locations/{location}/processors/{processor}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `processor`: - `documentai.processors.processBatch` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "defaultProcessorVersion": string } ``` |

| Fields ||
|---|---|
| `defaultProcessorVersion` | `string` Required. The resource name of child `https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/ProcessorVersion` to use as default. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}` |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/document-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#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).

### IAM Permissions

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

- `documentai.processors.update`

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