document
v1
PUT /api/v1/document/annotations/batch/
Create batch of annotations
PUT Params:
- operation_uid: uid
- action: str ["save", "delete"]
- id: int - PK of DocumentFieldValue
- data: {"document": id, "field": uid, "location_start": int, "location_end": int, "value": val}
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
[
{
"data": "{}",
"operation_uid": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"action": "delete",
"id": 0
}
]Response
Example response
[
{
"data": "{}",
"operation_uid": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "status"
}
]Changes
No recorded changes to this operation across all 5 revisions of this API.