**Full name**: projects.locations.processors.processorVersions.importProcessorVersion

Imports a processor version from source processor version.

### 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/{parent}/processorVersions:importProcessorVersion`

<br />

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The destination processor name to create the processor version in. Format: `projects/{project}/locations/{location}/processors/{processor}` 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 `parent`: - `documentai.processorVersions.create` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { // Union field `source` can be only one of the following: "processorVersionSource": string, "externalProcessorVersionSource": { object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors.processorVersions/importProcessorVersion#ExternalProcessorVersionSource`) } // End of list of possible types for union field `source`. } ``` |

| Fields ||
|---|---|
| Union field `source`. `source` can be only one of the following: ||
| `processorVersionSource` | `string` The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. |
| `externalProcessorVersionSource` | ``object (`https://docs.cloud.google.com/document-ai/docs/reference/rest/v1beta3/projects.locations.processors.processorVersions/importProcessorVersion#ExternalProcessorVersionSource`)`` The source processor version to import from. It can be from a different environment and region than the destination processor. |

### 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 `parent` resource:

- `documentai.processorVersions.create`

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

## ExternalProcessorVersionSource

The external source processor version.

| JSON representation |
|---|
| ``` { "processorVersion": string, "serviceEndpoint": string } ``` |

| Fields ||
|---|---|
| `processorVersion` | `string` Required. The processor version name. Format: `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` |
| `serviceEndpoint` | `string` Optional. The Document AI service endpoint. For example, 'https://us-documentai.googleapis.com' |