Update an annotation
Update attributes for an existing annotation.
You will need to supply the annotation’s unique ID. You can find the ID in the Label Studio UI listed at the top of the annotation in its tab. It is also listed in the History panel when viewing the annotation. Or you can use Get all task annotations to find all annotation IDs.
For information about the JSON format used in the result, see Label Studio JSON format of annotated tasks.
Path parameters
id
A unique integer value identifying this annotation.
Headers
Authorization
Header authentication of the form Token <token>
Request
This endpoint expects an object.
result
Labeling result in JSON format. Read more about the format in the Label Studio documentation.
task
Corresponding task for this annotation
project
Project ID for this annotation
completed_by
User ID of the person who created this annotation
updated_by
Last user who updated this annotation
was_cancelled
User skipped the task
ground_truth
This annotation is a Ground Truth
lead_time
How much time it took to annotate the task (in seconds)
Response
Updated annotation
id
result
List of annotation results for the task
created_username
Username string
created_ago
Time delta from creation time
completed_by
unique_id
was_cancelled
User skipped the task
ground_truth
This annotation is a Ground Truth (ground_truth)
created_at
Creation time
updated_at
Last updated time
draft_created_at
Draft creation time
lead_time
How much time it took to annotate the task
import_id
Original annotation ID that was at the import step or NULL if this annotation wasn't imported
last_action
Action which was performed in the last annotation history item
task
Corresponding task for this annotation
project
Project ID for this annotation
updated_by
Last user who updated this annotation
parent_prediction
Points to the prediction from which this annotation was created
parent_annotation
Points to the parent annotation from which this annotation was created
last_created_by
User who created the last annotation history item