Add an annotation entry to the database.
REQUIRED | KEY | TYPE | DESCRIPTION |
---|---|---|---|
Yes | annotation | dict | The annotation to add. Format of the annotation is determined by its annotation type. |
Yes | featureGroupId | str | The ID of the feature group the annotation is on. |
Yes | featureName | str | The name of the feature the annotation is on. |
No | docId | str | The ID of the primary document the annotation is on. At least one of the doc_id or feature_group_row_identifier must be provided in order to identify the correct annotation. |
No | featureGroupRowIdentifier | str | The key value of the feature group row the annotation is on (cast to string). Usually the feature group's primary / identifier key value. At least one of the doc_id or feature_group_row_identifier must be provided in order to identify the correct annotation. |
No | annotationSource | str | Indicator of whether the annotation came from the UI, bulk upload, etc. |
No | status | str | The status of the annotation. Can be one of 'todo', 'in_progress', 'done'. This is optional. |
No | comments | dict | Comments for the annotation. This is a dictionary of feature name to the corresponding comment. This is optional. |
No | projectId | str | The ID of the project that the annotation is associated with. This is optional. |
No | saveMetadata | bool | Whether to save the metadata for the annotation. This is optional. |
No | pages | list | pages (list): List of page numbers to consider while processing the annotation. This is optional. doc_id must be provided if pages is provided. |
KEY | TYPE | DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
success | Boolean | true if the call succeeded, false if there was an error | ||||||||||||||||||||||||||||||||||||||||||||||||
result | AnnotationEntry |
|
TYPE | WHEN |
---|---|
DataNotFoundError |
|
DataNotFoundError |
|
DataNotFoundError |
|
DataNotFoundError |
|