Create a processor job for document analysis.
POST {{baseUrl}}/processorJobs
Create a processor job for document analysis.
Request Body
{"processorConfig"=>{"processorType"=>"GENERAL", "features"=>[{"featureType"=>"TEXT_EXTRACTION"}]}, "inputLocation"=>{"sourceType"=>"OBJECT_STORAGE_LOCATIONS", "objectLocations"=>[{"bucketName"=>"example", "namespaceName"=>"idexample", "objectName"=>"document.txt"}]}, "outputLocation"=>{"bucketName"=>"example", "namespaceName"=>"idexample", "prefix"=>""}, "compartmentId"=>"{{compartment_ocid}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or | |
server error without the risk of executing that same action again. Retry tokens expire after 24 | |||
hours, but can be invalidated before then due to conflicting operations. For example, if a resource | |||
has been deleted and purged from the system, then a retry of the original creation request | |||
might be rejected. | |||
opc-request-id | string | The client request ID for tracing. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"veniam sunt ea","compartmentId":"cupidatat eu consequat in","processorConfig":{"processorType":"GENERAL"},"timeAccepted":"2001-03-22T10:16:00.589Z","outputLocation":{"namespaceName":"pariatur ut ut quis","bucketName":"aute ad commodo labore","prefix":"sunt et sint dolore"},"lifecycleState":"ACCEPTED","displayName":"in ipsum non occaecat","inputLocation":{"sourceType":"INLINE_DOCUMENT_CONTENT"},"lifecycleDetails":"COMPLETELY_FAILED","percentComplete":80.8843786739218,"timeFinished":"2021-05-06T12:40:22.357Z","timeStarted":"2012-01-05T02:30:26.371Z"}