Skip to main content
POST
Add Annotations
Click for Python SDK
This endpoint allows you to add box, polygon, cuboid, or category annotations to a Nucleus Dataset.

Definition: BoxGeometry

Definition: Point2D

Definition: PolygonGeometry

Definition: Point3D

Definition: CuboidGeometry

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

dataset_id
string
required

The Scale-generated ID of the Dataset.

Body

application/json
annotations
object[]
required

An array of Annotation objects.

update
boolean
default:false

Whether to overwrite existing annotations upon annotation_id and reference_id collision. For category annotations, determines whether to overwrite upon taxonomy_name and reference_id collision.

Response

200

dataset_id
string
Example:

"ds_bw6de8s84pe0vbn6p5zg"

annotations_processed
integer
default:0
Example:

3