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 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 (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. Note that ProcessorVersions with modelTypeMODEL_TYPE_LLM are not supported.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-10 UTC."],[[["\u003cp\u003eThis endpoint \u003ccode\u003eprojects.locations.processors.processorVersions.importProcessorVersion\u003c/code\u003e is used to import a processor version from a source processor version.\u003c/p\u003e\n"],["\u003cp\u003eThe request must be a POST request to the specified endpoint with the destination processor's details in the \u003ccode\u003eparent\u003c/code\u003e path parameter, using the format \u003ccode\u003eprojects/{project}/locations/{location}/processors/{processor}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esource\u003c/code\u003e field in the request body can be either \u003ccode\u003eprocessorVersionSource\u003c/code\u003e, which requires the source and destination to be in the same environment and region, or \u003ccode\u003eexternalProcessorVersionSource\u003c/code\u003e, which can be from a different environment and region.\u003c/p\u003e\n"],["\u003cp\u003eTo use this feature, you need \u003ccode\u003edocumentai.processorVersions.create\u003c/code\u003e IAM permission on the specified \u003ccode\u003eparent\u003c/code\u003e resource, and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eexternalProcessorVersionSource\u003c/code\u003e requires a processor version name in the format \u003ccode\u003eprojects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}\u003c/code\u003e and a Document AI service endpoint.\u003c/p\u003e\n"]]],[],null,["# Method: processorVersions.importProcessorVersion\n\n**Full name**: projects.locations.processors.processorVersions.importProcessorVersion\n\nImports a processor version from source processor version.\n\n### HTTP request\n\n`POST https://{endpoint}/v1beta3/{parent}/processorVersions:importProcessorVersion`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/document-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/document-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `documentai.processorVersions.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nExternalProcessorVersionSource\n------------------------------\n\nThe external source processor version."]]