v1

latestOpenAPI 3.0.22026-07-17373198641.7 KB
project
v1

Bulk 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)
post/api/v1/project/projects/{id}/set_annotation_status/

Path parameters

idstring required

A unique integer value identifying this project.

Request body

status_idinteger nullable
allboolean
annotation_idsinteger[]
no_annotation_idsinteger[]
forceboolean

Example request

{
  "all": true,
  "status_id": 0,
  "no_annotation_ids": [
    1,
    1
  ],
  "force": true,
  "annotation_ids": [
    6,
    6
  ]
}

Response

OR

Example response

{
  "success": 0
}