---
title: "POST /v1/{+processor}:setDefaultProcessorVersion"
method: POST
path: "/v1/{+processor}:setDefaultProcessorVersion"
tags: ["projects"]
---

# POST /v1/{+processor}:setDefaultProcessorVersion

`POST /v1/{+processor}:setDefaultProcessorVersion`

Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments.

## Path parameters

- `processor` string, required

## Request body

- GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest — Request message for the SetDefaultProcessorVersion method.
  - `defaultProcessorVersion` string — Required. The resource name of child ProcessorVersion to use as default. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/documentai.md) · [All operations](https://skmtc.dev/google/apis/documentai/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/documentai/revisions/88d43b76c9f3/schema)
