Required capabilities:
assetsAcl:READfilesAcl:READ
Detect annotations in engineering diagrams. Note: All users in a CDF project with assets read-all and files read access to the requested files can access data sent to this endpoint.
Supported input file mime_types are application/pdf, image/jpeg, image/png, image/tiff. Also note that the header of a successful response contains an X-Job-Token which allows to fetch the result of the
job at /context/diagram/detect/{jobId} without requiring 'assetsAcl:READ'.
Asset-centric support in this endpoint is deprecated.
This covers referencing files by fileId or fileExternalId and the assetsAcl:READ requirement for retrieving results.
Reference files with fileInstanceId, pass entities from your data model, and store results in the core data model instead of with the Annotations API.
See Deprecated and retired features for details and timelines.
Success
The response for a failed request.
{- "items": [
- {
- "pageRange": {
- "begin": 51,
- "end": 100
}, - "fileId": 1234
}
], - "entities": [
- {
- "userDefinedField": "21PT1017",
- "ignoredField": "AA11"
}, - {
- "userDefinedField": [
- "21PT1017-A",
- "21PT1017-B"
]
}
], - "searchField": "userDefinedField",
- "partialMatch": false,
- "minTokens": 2
}{- "items": [
- {
- "pageRange": {
- "begin": 51,
- "end": 100
}, - "fileId": 1234
}
], - "jobId": 123,
- "status": "Queued",
- "createdTime": 1730204346000,
- "startTime": 1730204346000,
- "statusTime": 1730204346000,
- "errorMessage": null,
- "searchField": "userDefinedField",
- "partialMatch": false,
- "minTokens": 2
}