openapi: 3.1.0
info:
title: API Reference subpackage_actions subpackage_projects.subpackage_projects/pauses API
version: 1.0.0
servers:
- url: http://localhost:8000
tags:
- name: subpackage_projects.subpackage_projects/pauses
paths:
/api/projects/{project_pk}/members/{user_pk}/pauses/:
get:
operationId: list
summary: ✨ List pauses
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/Pause'
post:
operationId: create
summary: ✨ Create pause
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:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/Pause'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PauseRequest'
/api/projects/{project_pk}/members/{user_pk}/pauses/{id}/:
get:
operationId: get
summary: ✨ Get pause
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/Pause'
delete:
operationId: delete
summary: ✨ Delete pause
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: Successful response
patch:
operationId: update
summary: ✨ Update pause
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/Pause'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedPauseRequest'
components:
schemas:
Pause:
type: object
properties:
created_at:
type: string
format: date-time
description: Timestamp when this pause record was created
deleted_at:
type:
- string
- 'null'
format: date-time
description: Timestamp when this pause record was soft-deleted
deleted_by:
type:
- integer
- 'null'
description: User who soft-deleted this pause record
id:
type: integer
paused_by:
$ref: '#/components/schemas/UserSimple'
project:
type:
- integer
- 'null'
description: Related project for which the pause is set
reason:
$ref: '#/components/schemas/ReasonEnum'
description: 'Reason for pausing
* `MANUAL` - Manual
* `BEHAVIOR_BASED` - Behavior-based
* `ANNOTATOR_EVALUATION` - Annotator evaluation
* `ANNOTATION_LIMIT` - Annotation limit
* `CUSTOM_SCRIPT` - Custom script'
updated_at:
type: string
format: date-time
description: Timestamp when this pause record was last updated
user:
type:
- integer
- 'null'
description: User who is paused
verbose_reason:
type:
- string
- 'null'
description: Detailed description of why the project is paused, will be readable by paused annotators
required:
- created_at
- deleted_at
- deleted_by
- id
- paused_by
- project
- reason
- updated_at
- user
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: Pause
PauseRequest:
type: object
properties:
reason:
$ref: '#/components/schemas/ReasonEnum'
description: 'Reason for pausing
* `MANUAL` - Manual
* `BEHAVIOR_BASED` - Behavior-based
* `ANNOTATOR_EVALUATION` - Annotator evaluation
* `ANNOTATION_LIMIT` - Annotation limit
* `CUSTOM_SCRIPT` - Custom script'
verbose_reason:
type:
- string
- 'null'
description: Detailed description of why the project is paused, will be readable by paused annotators
required:
- reason
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: PauseRequest
PatchedPauseRequest:
type: object
properties:
reason:
$ref: '#/components/schemas/ReasonEnum'
description: 'Reason for pausing
* `MANUAL` - Manual
* `BEHAVIOR_BASED` - Behavior-based
* `ANNOTATOR_EVALUATION` - Annotator evaluation
* `ANNOTATION_LIMIT` - Annotation limit
* `CUSTOM_SCRIPT` - Custom script'
verbose_reason:
type:
- string
- 'null'
description: Detailed description of why the project is paused, will be readable by paused annotators
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: PatchedPauseRequest
UserSimple:
type: object
properties:
avatar:
type: string
email:
type: string
format: email
first_name:
type: string
id:
type: integer
last_name:
type: string
username:
type: string
required:
- avatar
- id
- username
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: UserSimple
ReasonEnum:
type: string
enum:
- MANUAL
- BEHAVIOR_BASED
- ANNOTATOR_EVALUATION
- ANNOTATION_LIMIT
- CUSTOM_SCRIPT
description: '* `MANUAL` - Manual
* `BEHAVIOR_BASED` - Behavior-based
* `ANNOTATOR_EVALUATION` - Annotator evaluation
* `ANNOTATION_LIMIT` - Annotation limit
* `CUSTOM_SCRIPT` - Custom script'
title: ReasonEnum
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]"'