Method: processors.create

Full name: projects.locations.processors.create

Creates a processor from the ProcessorType provided. The processor will be at ENABLED state by default after its creation. Note that this method requires the documentai.processors.create permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project.

HTTP request

POST https://{endpoint}/v1/{parent}/processors

Where {endpoint} is one of the supported service endpoints.

Path parameters

Parameters
parent

string

Required. The parent (project and location) under which to create the processor. Format: projects/{project}/locations/{location} It takes the form projects/{project}/locations/{location}.

Request body

The request body contains an instance of Processor.

Response body

If successful, the response body contains a newly created instance of Processor.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • documentai.processors.create

For more information, see the IAM documentation.