project
v1
POST /api/v1/project/projects/{id}/set_annotation_status/
Changed onBulk set status for batch of annotations
Params:
document_ids: list[int]
all: any value - update all annotations if any value
no_annotation_ids: list[int] - exclude those annotations from action (if "all" is set)
status_id: int - field annotation status id
run_mode: str - 'sync', 'background', 'smart'
Returns:
int (number of reassigned annotations)
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.
Path parameters
idstring required
A unique integer value identifying this project.
Request body
Example request
{
"all": true,
"status_id": 0,
"no_annotation_ids": [
1,
1
],
"force": true,
"annotation_ids": [
6,
6
]
}Response
Example response
{
"success": 0
}Changes
- info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: application/x-www-form-urlencoded) - info
added the new optional request property
(media type: multipart/form-data)
- info
- warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - warning
removed the request property
(media type: multipart/form-data)
- warning