Skip to content

Latest commit

 

History

History
executable file
·
155 lines (96 loc) · 5.22 KB

AnnotationsApi.md

File metadata and controls

executable file
·
155 lines (96 loc) · 5.22 KB

\AnnotationsApi

All URIs are relative to http://api.labelstud.io

Method HTTP request Description
ApiAnnotationsDelete Delete /api/annotations/{id}/ Delete annotation
ApiAnnotationsPartialUpdate Patch /api/annotations/{id}/ Update annotation
ApiAnnotationsRead Get /api/annotations/{id}/ Get annotation by its ID
ApiTasksAnnotationsCreate Post /api/tasks/{id}/annotations/ Create annotation
ApiTasksAnnotationsList Get /api/tasks/{id}/annotations/ Get all task annotations

ApiAnnotationsDelete

ApiAnnotationsDelete(ctx, id) Delete annotation

Delete an annotation. This action can't be undone!

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 A unique integer value identifying this annotation.

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiAnnotationsPartialUpdate

Annotation ApiAnnotationsPartialUpdate(ctx, id, data) Update annotation

Update existing attributes on an annotation.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 A unique integer value identifying this annotation.
data Annotation

Return type

Annotation

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiAnnotationsRead

Annotation ApiAnnotationsRead(ctx, id) Get annotation by its ID

Retrieve a specific annotation for a task using the annotation result ID.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 A unique integer value identifying this annotation.

Return type

Annotation

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiTasksAnnotationsCreate

Annotation ApiTasksAnnotationsCreate(ctx, data, id) 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 }

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
data Annotation
id int32 Task ID

Return type

Annotation

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ApiTasksAnnotationsList

[]Annotation ApiTasksAnnotationsList(ctx, id) Get all task annotations

List all annotations for a task.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 Task ID

Return type

[]Annotation

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]