SubmitDocParsingTask
Parses content such as text, tables, and images in a document. After you successfully invoke the operation, a node ID is returned. You can then invoke the GetDocParsingResult operation to obtain the document parsing result. This operation supports both local files and URL files. The asynchronous commit node operation for URL uploads is SubmitDocParsingTask. The asynchronous commit node operation for local file uploads is SubmitDocParsingTaskAdvance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:SubmitDocParsingTask |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v2/aidoc/document/submitDocParsingTask HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| fileUrl |
string |
No |
Specify either fileUrl or fileUrlObject:
Note
Relationship between document parsing methods and supported document types
|
FileUrl: https://example.com/example.pdf fileUrlObject: FileInputStream generated from a local file |
| fileName |
string |
Yes |
The file name must include the file name extension. |
example.pdf |
| folderId |
string |
No |
|
xxxxx |
| needAnalyzeImg |
boolean |
No |
Specifies whether to parse the image content in the document. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
83A5A7DD-8974-5769-952E-590A97BEA34E |
| data |
object |
The returned result. |
|
| taskId |
string |
The task ID. |
ae9d07be-1a11-4d30-be75-cc962b98279c |
Examples
Success response
JSON format
{
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E\n",
"data": {
"taskId": "ae9d07be-1a11-4d30-be75-cc962b98279c"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.