Annotations
Create annotation
Add annotations to a task like an annotator does. The content of the result field depends on your
labeling configuration. For example, send the following data as part of your POST
request to send an empty annotation with the ID of the user who completed the task:
```json
{
"result": {},
"was_cancelled": true,
"ground_truth": true,
"lead_time": 0,
"task": 0
"completed_by": 123
}
```
post/api/tasks/{id}/annotations/
Path parameters
idinteger required
Task ID
Request body
Example request
{
"ground_truth": true,
"result": [
{
"from_name": "bboxes",
"image_rotation": 0,
"original_height": 1080,
"original_width": 1920,
"to_name": "image",
"type": "rectanglelabels",
"value": {
"height": 60,
"rotation": 0,
"values": {
"rectanglelabels": [
"Person"
]
},
"width": 50,
"x": 20,
"y": 30
}
}
],
"was_cancelled": false
}Response
Created annotation