openapi: 3.1.0
info:
title: API Reference subpackage_actions subpackage_annotationHistory API
version: 1.0.0
servers:
- url: http://localhost:8000
tags:
- name: subpackage_annotationHistory
paths:
/api/annotation-history/:
get:
operationId: list
summary: ✨ List all annotation history items for annotation
description: " \n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n \n
curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AnnotationHistory'
delete:
operationId: delete
summary: ✨ Delete annotation history items
description: "\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n
\ncurl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: Returns a dict containing the count of removed items.
content:
application/json:
schema:
$ref: '#/components/schemas/annotation_history_delete_Response_200'
/api/annotation-history/{id}/:
get:
operationId: retrieve
summary: ✨ Retrieve a single annotation history item (full result for hydration)
description: "\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n
\ncurl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/AnnotationHistory'
/api/projects/{id}/annotation-history/:
get:
operationId: list-for-project
summary: ✨ List annotation history items for project
description: "\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n
\ncurl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedAnnotationHistoryList'
components:
schemas:
AnnotationHistory:
type: object
properties:
action:
oneOf:
- $ref: '#/components/schemas/ActionEnum'
- type: 'null'
annotation_id:
type:
- integer
- 'null'
description: Corresponding annotation for this historical annotation
comment:
type:
- string
- 'null'
comment_id:
type:
- integer
- 'null'
description: Comment id sent with result
created_at:
type: string
format: date-time
created_by:
type:
- integer
- 'null'
description: Created by user id
draft_id:
type:
- integer
- 'null'
description: Corresponding draft for this historical annotation
id:
type: integer
lead_time:
type:
- number
- 'null'
format: double
description: How much time it took to annotate the task
organization_id:
type:
- integer
- 'null'
description: Organization for this annotation history
project_id:
type:
- integer
- 'null'
description: Project for this annotation history
result:
oneOf:
- description: Any type
- type: 'null'
description: Labeling result
review_id:
type:
- integer
- 'null'
description: AnnotationReview ID, using with review field
started_at:
type:
- string
- 'null'
format: date-time
description: The time that a user started working on this revision of the annotation
task_id:
type:
- integer
- 'null'
description: Task id
required:
- comment
- created_at
- id
description: 'A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations'
title: AnnotationHistory
ActionEnum:
type: string
enum:
- prediction
- propagated_annotation
- imported
- submitted
- updated
- skipped
- accepted
- rejected
- fixed_and_accepted
- deleted_review
description: '* `prediction` - Created from prediction
* `propagated_annotation` - Created from another annotation
* `imported` - Imported
* `submitted` - Submitted
* `updated` - Updated
* `skipped` - Skipped
* `accepted` - Accepted
* `rejected` - Rejected
* `fixed_and_accepted` - Fixed and accepted
* `deleted_review` - Deleted review'
title: ActionEnum
annotation_history_delete_Response_200:
type: object
properties:
removed:
type: integer
description: Number of removed items
title: annotation_history_delete_Response_200
PaginatedAnnotationHistoryList:
type: object
properties:
count:
type: integer
next:
type:
- string
- 'null'
format: uri
previous:
type:
- string
- 'null'
format: uri
results:
type: array
items:
$ref: '#/components/schemas/AnnotationHistory'
required:
- count
- results
title: PaginatedAnnotationHistoryList
securitySchemes:
Token:
type: apiKey
in: header
name: Authorization
description: 'The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'