Call Document Understanding Rest API
Hello comunity,
I have created a Document Understanding model in my OCI.
I have reviewed the documentation and I am not very clear on which method to use, as there are two:
post /20221109/processorJobs
post /20221109/actions/analyzeDocument
In the OCI itself, if I want to try to upload a document, I get a request in JSON format, which is the body I send, so this JSON is from the processorJobs method, which looks something like this:
{
"processorConfig": {
"processorType": "GENERAL",
"features": [
{
"modelId": "model",
"featureType": "KEY_VALUE_EXTRACTION"
}
],
"language": "ENG"
},
"inputLocation": {
"sourceType": "OBJECT_STORAGE_LOCATIONS",
"objectLocations": [
{
"source": "OBJECT_STORAGE",
"namespaceName": "lr7wd0wpzj3w",