CVAT平台REST API文档 | Computer Vision Annotation Tool (CVAT) REST API (2.0)

cvat是一个非常好用的标注工具,同时支持以API的形式访问进行二次开发。本文简单介绍一下CVAT平台的API使用文档。

Computer Vision Annotation Tool (CVAT) REST API (2.0)

CVAT

v1.0.0

Base URLs:

Authentication

CVAT/assets

POST Method saves new asset on the server and attaches it to a corresponding guide

POST /api/assets

Body Parameters

file: string

Params

NameLocationTypeRequiredDescription
bodybodyobjectnonone
» filebodystring(binary)nonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns an asset file

GET /api/assets/{uuid}

Params

NameLocationTypeRequiredDescription
uuidpathstringyesA UUID string identifying this asset.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKAsset fileInline

Responses Data Schema

DELETE Method deletes a specific asset from the server

DELETE /api/assets/{uuid}

Params

NameLocationTypeRequiredDescription
uuidpathstringyesA UUID string identifying this asset.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe asset has been deletedInline

Responses Data Schema

CVAT/auth

POST /api/auth/login

POST /api/auth/login

Check the credentials and return the REST Token
if the credentials are valid and authenticated.
If email verification is enabled and the user has the unverified email,
an email with a confirmation link will be sent.
Calls Django Auth login method to register User ID
in Django session framework.

Accept the following POST parameters: username, email, password
Return the REST Framework Token Object’s key.

Body Parameters

{
  "username": "string",
  "email": "user@example.com",
  "password": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodyLoginSerializerExRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST /api/auth/logout

POST /api/auth/logout

Calls Django logout method and delete the Token object
assigned to the current User object.

Accepts/Returns nothing.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST /api/auth/password/change

POST /api/auth/password/change

Calls Django Auth SetPasswordForm save method.

Accepts the following POST parameters: new_password1, new_password2
Returns the success/fail message.

Body Parameters

{
  "old_password": "string",
  "new_password1": "string",
  "new_password2": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodyPasswordChangeRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST /api/auth/password/reset

POST /api/auth/password/reset

Calls Django Auth PasswordResetForm save method.

Accepts the following POST parameters: email
Returns the success/fail message.

Body Parameters

{
  "email": "user@example.com"
}

Params

NameLocationTypeRequiredDescription
bodybodyPasswordResetSerializerExRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST /api/auth/password/reset/confirm

POST /api/auth/password/reset/confirm

Password reset e-mail link is confirmed, therefore
this resets the user’s password.

Accepts the following POST parameters: token, uid,
new_password1, new_password2
Returns the success/fail message.

Body Parameters

{
  "new_password1": "string",
  "new_password2": "string",
  "uid": "string",
  "token": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodyPasswordResetConfirmRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST /api/auth/register

POST /api/auth/register

Body Parameters

{
  "username": "string",
  "email": "user@example.com",
  "password1": "string",
  "password2": "string",
  "first_name": "string",
  "last_name": "string",
  "confirmations": [
    {
      "name": "string",
      "url_display_text": "",
      "url": "",
      "text_prefix": "",
      "required": false,
      "value": false
    }
  ]
}

Params

NameLocationTypeRequiredDescription
bodybodyRegisterSerializerWithSubscriptionsRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET /api/auth/rules

GET /api/auth/rules

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKNo response bodyInline

Responses Data Schema

POST This method signs URL for access to the server

POST /api/auth/signing

Signed URL contains a token which authenticates a user on the server.Signed URL is valid during 30 seconds since signing.

Body Parameters

{
  "url": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodySigningRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKtext URLInline

Responses Data Schema

GET Method provides a list with integrated social accounts authentication.

GET /api/auth/social

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Redirects to provider authentication page

GET /api/auth/social/{id}/login/

Redirects to the specified provider authentication page. After successful authentication on the provider side, a redirect to the callback endpoint is performed

Params

NameLocationTypeRequiredDescription
idpathstringyesnone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKNo response bodyInline

Responses Data Schema

GET Checks the authentication response from specified provider, redirects to the CVAT client if successful.

GET /api/auth/social/{id}/login/callback/

Accepts a request from provider with code and state query parameters. In case of successful authentication on the provider side, it will redirect to the CVAT client

Params

NameLocationTypeRequiredDescription
idpathstringyesnone
codequerystringnoReturned by provider
statequerystringnoReturned by provider

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKNo response bodyInline

Responses Data Schema

POST Method returns an authentication token based on code parameter

POST /api/auth/social/{id}/login/token/

After successful authentication on the provider side, the provider returns the ‘code’ parameter used to receive an authentication token required for CVAT authentication.

Body Parameters

{
  "access_token": "string",
  "code": "string",
  "id_token": "string",
  "auth_params": "",
  "process": "login",
  "scope": ""
}

Params

NameLocationTypeRequiredDescription
idpathstringyesnone
auth_paramsquerystringnonone
processquerystringnonone
scopequerystringnonone
bodybodySocialLoginSerializerExRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

CVAT/cloudstorages

GET Returns a paginated list of storages

GET /api/cloudstorages

Params

NameLocationTypeRequiredDescription
credentials_typequerystringnoA simple equality filter for the credentials_type field
filterquerystringnoA filter term. Available filter_fields: [‘provider_type’, ‘name’, ‘resource’, ‘credentials_type’, ‘owner’, ‘description’, ‘id’]
namequerystringnoA simple equality filter for the name field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
ownerquerystringnoA simple equality filter for the owner field
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
provider_typequerystringnoA simple equality filter for the provider_type field
resourcequerystringnoA simple equality filter for the resource field
searchquerystringnoA search term. Available search_fields: (‘provider_type’, ‘name’, ‘resource’, ‘credentials_type’, ‘owner’, ‘description’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘provider_type’, ‘name’, ‘resource’, ‘credentials_type’, ‘owner’, ‘description’, ‘id’]
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates a cloud storage with a specified characteristics

POST /api/cloudstorages

Body Parameters

provider_type: string
resource: string
display_name: string
owner: string
credentials_type: string
session_token: string
account_name: string
key: string
secret_key: string
connection_string: string
key_file: string
specific_attributes: string
description: string
manifests: []

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyobjectnonone
» provider_typebodystringyesnone
» resourcebodystringyesnone
» display_namebodystringyesnone
» ownerbodystringnonone
» credentials_typebodystringyesnone
» session_tokenbodystringnonone
» account_namebodystringnonone
» keybodystringnonone
» secret_keybodystringnonone
» connection_stringbodystringnonone
» key_filebodystring(binary)nonone
» specific_attributesbodystringnonone
» descriptionbodystringnonone
» manifestsbodyarraynonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of a specific cloud storage

GET /api/cloudstorages/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this cloud storage.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in a cloud storage instance

PATCH /api/cloudstorages/{id}

Body Parameters

provider_type: string
resource: string
display_name: string
owner: string
credentials_type: string
session_token: string
account_name: string
key: string
secret_key: string
connection_string: string
key_file: string
specific_attributes: string
description: string
manifests: []

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this cloud storage.
bodybodyobjectnonone
» provider_typebodystringnonone
» resourcebodystringnonone
» display_namebodystringnonone
» ownerbodystringnonone
» credentials_typebodystringnonone
» session_tokenbodystringnonone
» account_namebodystringnonone
» keybodystringnonone
» secret_keybodystringnonone
» connection_stringbodystringnonone
» key_filebodystring(binary)nonone
» specific_attributesbodystringnonone
» descriptionbodystringnonone
» manifestsbodyarraynonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a specific cloud storage

DELETE /api/cloudstorages/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this cloud storage.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe cloud storage has been removedInline

Responses Data Schema

GET Method returns allowed actions for the cloud storage

GET /api/cloudstorages/{id}/actions

Method return allowed actions for cloud storage. It’s required for reading/writing

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this cloud storage.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKCloud Storage actions (GETPUT

Responses Data Schema

GET Method returns a manifest content

GET /api/cloudstorages/{id}/content

This method is deprecated and will be removed in version 2.6.0. Please use the new version of API: /cloudstorages/id/content-v2/

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this cloud storage.
manifest_pathquerystringnoPath to the manifest file in a cloud storage

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKA manifest contentInline

Responses Data Schema

GET Method returns the content of the cloud storage

GET /api/cloudstorages/{id}/content-v2

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this cloud storage.
manifest_pathquerystringnoPath to the manifest file in a cloud storage
next_tokenquerystringnoUsed to continue listing files in the bucket
page_sizequeryintegernonone
prefixquerystringnoPrefix to filter data

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKA manifest contentInline

Responses Data Schema

GET Method returns a preview image from a cloud storage

GET /api/cloudstorages/{id}/preview

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this cloud storage.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKCloud Storage previewInline
400Bad RequestFailed to get cloud storage previewInline
404Not FoundCloud Storage preview not foundInline

Responses Data Schema

GET Method returns a cloud storage status

GET /api/cloudstorages/{id}/status

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this cloud storage.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKCloud Storage status (AVAILABLENOT_FOUND

Responses Data Schema

CVAT/comments

GET Method returns a paginated list of comments

GET /api/comments

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘owner’, ‘id’, ‘issue_id’, ‘frame_id’, ‘job_id’]
frame_idqueryintegernoA simple equality filter for the frame_id field
issue_idqueryintegernoA simple equality filter for the issue_id field
job_idqueryintegernoA simple equality filter for the job_id field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
ownerquerystringnoA simple equality filter for the owner field
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
searchquerystringnoA search term. Available search_fields: (‘owner’,)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘owner’, ‘id’, ‘issue_id’, ‘frame_id’, ‘job_id’]
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates a comment

POST /api/comments

Body Parameters

{
  "issue": 0,
  "message": "string"
}

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyCommentWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of a comment

GET /api/comments/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this comment.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in a comment

PATCH /api/comments/{id}

Body Parameters

{
  "message": "string"
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this comment.
bodybodyPatchedCommentWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a comment

DELETE /api/comments/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this comment.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe comment has been deletedInline

Responses Data Schema

CVAT/events

GET Method returns csv log file

GET /api/events

Receive logs from the server

Params

NameLocationTypeRequiredDescription
actionquerystringnoUsed to start downloading process after annotation file had been created
filenamequerystringnoDesired output file name
fromquerystringnoFilter events after the datetime. If no ‘from’ or ‘to’ parameters are passed, the last 30 days will be set.
job_idqueryintegernoFilter events by job ID
org_idqueryintegernoFilter events by organization ID
project_idqueryintegernoFilter events by project ID
query_idquerystringnoID of query request that need to check or download
task_idqueryintegernoFilter events by task ID
toquerystringnoFilter events before the datetime. If no ‘from’ or ‘to’ parameters are passed, the last 30 days will be set.
user_idqueryintegernoFilter events by user ID

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedCSV log file is ready for downloadingInline
202AcceptedCreating a CSV log file has been startedInline

Responses Data Schema

POST Method saves logs from a client on the server

POST /api/events

Sends logs to the Clickhouse if it is connected

Body Parameters

{
  "events": [],
  "timestamp": "2019-08-24T14:15:22Z"
}

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyClientEventsRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

CVAT/functions

GET Method returns a paginated list of functions

GET /api/functions

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘name’, ‘owner’, ‘provider’, ‘type’, ‘labels’, ‘id’, ‘updated_date’]
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
searchquerystringnoA search term. Available search_fields: (‘name’, ‘owner’, ‘provider’, ‘type’, ‘labels’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘name’, ‘owner’, ‘provider’, ‘type’, ‘labels’, ‘id’, ‘updated_date’]
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates a function

POST /api/functions

Body Parameters

{
  "provider": "string",
  "url": "string",
  "api_key": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodyFunctionRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of a function

GET /api/functions/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this function.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a function

DELETE /api/functions/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this function.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe function has been deletedInline

Responses Data Schema

GET Method returns a preview image for the function

GET /api/functions/{id}/preview

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this function.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKFunction image previewInline
404Not FoundFunction image preview not foundInline

Responses Data Schema

POST Method runs a function

POST /api/functions/{id}/run

Body Parameters

{
  "provider": "string",
  "url": "string",
  "api_key": "string"
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this function.
bodybodyFunctionRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns information about the required function arguments

GET /api/functions/info

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns a list of requests

GET /api/functions/requests/

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method calls a function

POST /api/functions/requests/

Body Parameters

{
  "provider": "string",
  "url": "string",
  "api_key": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodyFunctionRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns the status of the request

GET /api/functions/requests/{request_id}

Params

NameLocationTypeRequiredDescription
request_idpathstringyesnone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method cancels the request

DELETE /api/functions/requests/{request_id}

Params

NameLocationTypeRequiredDescription
request_idpathstringyesnone

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentNo response bodyInline

Responses Data Schema

CVAT/guides

POST Method creates a new annotation guide binded to a project or to a task

POST /api/guides

Body Parameters

{
  "task_id": 0,
  "project_id": 0,
  "markdown": "string"
}

Params

NameLocationTypeRequiredDescription
bodybodyAnnotationGuideWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of a specific annotation guide

GET /api/guides/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this annotation guide.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in an annotation guide

PATCH /api/guides/{id}

Body Parameters

{
  "task_id": 0,
  "project_id": 0,
  "markdown": "string"
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this annotation guide.
bodybodyPatchedAnnotationGuideWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a specific annotation guide and all attached assets

DELETE /api/guides/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this annotation guide.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe annotation guide has been deletedInline

Responses Data Schema

CVAT/invitations

GET Method returns a paginated list of invitations

GET /api/invitations

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘owner’]
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
ownerquerystringnoA simple equality filter for the owner field
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
searchquerystringnoA search term. Available search_fields: (‘owner’,)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘owner’, ‘created_date’]
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates an invitation

POST /api/invitations

Body Parameters

{
  "role": "worker",
  "email": "user@example.com"
}

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyInvitationWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of an invitation

GET /api/invitations/{key}

Params

NameLocationTypeRequiredDescription
keypathstringyesA unique value identifying this invitation.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in an invitation

PATCH /api/invitations/{key}

Body Parameters

{
  "role": "worker",
  "email": "user@example.com"
}

Params

NameLocationTypeRequiredDescription
keypathstringyesA unique value identifying this invitation.
bodybodyPatchedInvitationWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes an invitation

DELETE /api/invitations/{key}

Params

NameLocationTypeRequiredDescription
keypathstringyesA unique value identifying this invitation.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe invitation has been deletedInline

Responses Data Schema

CVAT/issues

GET Method returns a paginated list of issues

GET /api/issues

Params

NameLocationTypeRequiredDescription
assigneequerystringnoA simple equality filter for the assignee field
filterquerystringnoA filter term. Available filter_fields: [‘owner’, ‘assignee’, ‘id’, ‘job_id’, ‘task_id’, ‘resolved’, ‘frame_id’]
frame_idqueryintegernoA simple equality filter for the frame_id field
job_idqueryintegernoA simple equality filter for the job_id field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
ownerquerystringnoA simple equality filter for the owner field
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
resolvedquerystringnoA simple equality filter for the resolved field
searchquerystringnoA search term. Available search_fields: (‘owner’, ‘assignee’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘owner’, ‘assignee’, ‘id’, ‘job_id’, ‘task_id’, ‘resolved’, ‘frame_id’]
task_idqueryintegernoA simple equality filter for the task_id field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates an issue

POST /api/issues

Body Parameters

{
  "frame": 2147483647,
  "position": [
    0
  ],
  "job": 0,
  "assignee": 0,
  "message": "string",
  "resolved": true
}

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyIssueWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of an issue

GET /api/issues/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this issue.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in an issue

PATCH /api/issues/{id}

Body Parameters

{
  "position": [
    0
  ],
  "assignee": 0,
  "resolved": true
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this issue.
bodybodyPatchedIssueWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes an issue

DELETE /api/issues/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this issue.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe issue has been deletedInline

Responses Data Schema

CVAT/jobs

GET Method returns a paginated list of jobs

GET /api/jobs

Params

NameLocationTypeRequiredDescription
assigneequerystringnoA simple equality filter for the assignee field
dimensionquerystringnoA simple equality filter for the dimension field
filterquerystringnoA filter term. Available filter_fields: [‘task_name’, ‘project_name’, ‘assignee’, ‘state’, ‘stage’, ‘id’, ‘task_id’, ‘project_id’, ‘updated_date’, ‘dimension’, ‘type’]
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
project_idqueryintegernoA simple equality filter for the project_id field
project_namequerystringnoA simple equality filter for the project_name field
searchquerystringnoA search term. Available search_fields: (‘task_name’, ‘project_name’, ‘assignee’, ‘state’, ‘stage’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘task_name’, ‘project_name’, ‘assignee’, ‘state’, ‘stage’, ‘id’, ‘task_id’, ‘project_id’, ‘updated_date’, ‘dimension’, ‘type’]
stagequerystringnoA simple equality filter for the stage field
statequerystringnoA simple equality filter for the state field
task_idqueryintegernoA simple equality filter for the task_id field
task_namequerystringnoA simple equality filter for the task_name field
typequerystringnoA simple equality filter for the type field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates a new job in the task

POST /api/jobs

Body Parameters

{
  "assignee": 0,
  "stage": "annotation",
  "state": "new",
  "type": "annotation",
  "task_id": 0,
  "frame_selection_method": "random_uniform",
  "frame_count": 0,
  "seed": 0,
  "frames": [
    0
  ]
}

Params

NameLocationTypeRequiredDescription
bodybodyJobWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method provides a meta information about media files which are related with the job

GET /api/jobs/{id}/data/meta

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns details of a job

GET /api/jobs/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in a job

PATCH /api/jobs/{id}

Body Parameters

{
  "assignee": 0,
  "stage": "annotation",
  "state": "new"
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.
bodybodyPatchedJobWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a job and its related annotations

DELETE /api/jobs/{id}

Please note, that not every job can be removed. Currently,
it is only available for Ground Truth jobs.

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe job has been deletedInline

Responses Data Schema

GET Method returns annotations for a specific job as a JSON document. If format is specified, a zip archive is returned.

GET /api/jobs/{id}/annotations/

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.
actionquerystringnoUsed to start downloading process after annotation file had been created
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoDesired output file name
formatquerystringnoDesired output format name
locationquerystringnoWhere need to save downloaded annotation
use_default_locationquerystringnoUse the location that was configured in the task to export annotation
Description

format: Desired output format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedOutput file is ready for downloadingInline
202AcceptedExporting has been startedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

POST Method allows to initialize the process of the job annotation upload from a local file or a cloud storage

POST /api/jobs/{id}/annotations/

The request POST /api/jobs/id/annotations will initiate file upload and will create
the rq job on the server in which the process of annotations uploading from file
will be carried out. Please, use the PUT /api/jobs/id/annotations endpoint for checking status of the process.

Body Parameters

annotation_file: string

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoAnnotation file name
formatquerystringnoInput format name
locationquerystringnowhere to import the annotation from
use_default_locationquerystringnoUse the location that was configured in the task to import annotation
bodybodyobjectnonone
» annotation_filebodystring(binary)yesnone
Description

format: Input format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201CreatedUploading has finishedInline
202AcceptedUploading has been startedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

PUT Method performs an update of all annotations in a specific job or used for uploading annotations from a file

PUT /api/jobs/{id}/annotations/

To check the status of the process of uploading a job annotations from a file:

After initiating the annotations upload, you will receive an rq_id parameter.
Make sure to include this parameter as a query parameter in your subsequent
PUT /api/jobs/id/annotations requests to track the status of the annotations upload.

Body Parameters

{}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoAnnotation file name
formatquerystringnoInput format name
locationquerystringnowhere to import the annotation from
rq_idquerystringnorq id
use_default_locationquerystringnoUse the location that was configured in the task to import annotation
bodybodyobjectnonone
Description

format: Input format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201CreatedUploading has finishedInline
202AcceptedUploading has been startedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

PATCH Method performs a partial update of annotations in a specific job

PATCH /api/jobs/{id}/annotations/

Body Parameters

version: 0
tags: []
shapes: []
tracks: []

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.
actionquerystringyesnone
bodybodyobjectnonone
» versionbodyintegernonone
» tagsbodyarraynonone
» shapesbodyarraynonone
» tracksbodyarraynonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKAnnotations successfully uploadedInline

Responses Data Schema

DELETE Method deletes all annotations for a specific job

DELETE /api/jobs/{id}/annotations/

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe annotation has been deletedInline

Responses Data Schema

GET Method returns data for a specific job

GET /api/jobs/{id}/data

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.
numberqueryintegernoA unique number value identifying chunk or frame
qualityquerystringnoSpecifies the quality level of the requested data
typequerystringnoSpecifies the type of the requested data

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKData of a specific typeInline

Responses Data Schema

GET Export job as a dataset in a specific format

GET /api/jobs/{id}/dataset

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.
actionquerystringnoUsed to start downloading process after annotation file had been created
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoDesired output file name
formatquerystringyesDesired output format name
locationquerystringnoWhere need to save downloaded dataset
use_default_locationquerystringnoUse the location that was configured in the task to export dataset
Description

format: Desired output format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedOutput file is ready for downloadingInline
202AcceptedExporting has been startedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

GET Method returns a preview image for the job

GET /api/jobs/{id}/preview

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKJob image previewInline

Responses Data Schema

CVAT/tasks

PATCH Method provides a meta information about media files which are related with the job

PATCH /api/jobs/{id}/data/meta

Body Parameters

{
  "deleted_frames": [
    0
  ]
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this job.
bodybodyPatchedDataMetaWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Returns a paginated list of tasks

GET /api/tasks

Params

NameLocationTypeRequiredDescription
assigneequerystringnoA simple equality filter for the assignee field
dimensionquerystringnoA simple equality filter for the dimension field
filterquerystringnoA filter term. Available filter_fields: [‘project_name’, ‘name’, ‘owner’, ‘status’, ‘assignee’, ‘subset’, ‘mode’, ‘dimension’, ‘tracker_link’, ‘id’, ‘project_id’, ‘updated_date’]
modequerystringnoA simple equality filter for the mode field
namequerystringnoA simple equality filter for the name field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
ownerquerystringnoA simple equality filter for the owner field
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
project_idqueryintegernoA simple equality filter for the project_id field
project_namequerystringnoA simple equality filter for the project_name field
searchquerystringnoA search term. Available search_fields: (‘project_name’, ‘name’, ‘owner’, ‘status’, ‘assignee’, ‘subset’, ‘mode’, ‘dimension’, ‘tracker_link’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘project_name’, ‘name’, ‘owner’, ‘status’, ‘assignee’, ‘subset’, ‘mode’, ‘dimension’, ‘tracker_link’, ‘id’, ‘project_id’, ‘updated_date’]
statusquerystringnoA simple equality filter for the status field
subsetquerystringnoA simple equality filter for the subset field
tracker_linkquerystringnoA simple equality filter for the tracker_link field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates a new task in a database without any attached images and videos

POST /api/tasks

Body Parameters

{
  "name": "string",
  "project_id": 0,
  "owner_id": 0,
  "assignee_id": 0,
  "bug_tracker": "string",
  "overlap": 2147483647,
  "segment_size": 2147483647,
  "labels": [
    {
      "id": 0,
      "name": "string",
      "color": "string",
      "attributes": [],
      "deleted": true,
      "type": "string",
      "svg": "string",
      "sublabels": [
        {
          "id": 0,
          "name": "string",
          "color": "string",
          "attributes": [],
          "type": "string",
          "has_parent": true
        }
      ]
    }
  ],
  "subset": "string",
  "target_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "source_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  }
}

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyTaskWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of a specific task

GET /api/tasks/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in a task

PATCH /api/tasks/{id}

Body Parameters

{
  "name": "string",
  "project_id": 0,
  "owner_id": 0,
  "assignee_id": 0,
  "bug_tracker": "string",
  "labels": [
    {
      "id": 0,
      "name": "string",
      "color": "string",
      "attributes": [],
      "deleted": true,
      "type": "string",
      "svg": "string",
      "sublabels": [
        {
          "id": 0,
          "name": "string",
          "color": "string",
          "attributes": [],
          "type": "string",
          "has_parent": true
        }
      ]
    }
  ],
  "subset": "string",
  "target_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "source_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  }
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
bodybodyPatchedTaskWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a specific task, all attached jobs, annotations, and data

DELETE /api/tasks/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe task has been deletedInline

Responses Data Schema

GET Method allows to download task annotations

GET /api/tasks/{id}/annotations/

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
actionquerystringnoUsed to start downloading process after annotation file had been created
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoDesired output file name
formatquerystringnoDesired output format name
locationquerystringnoWhere need to save downloaded dataset
use_default_locationquerystringnoUse the location that was configured in the task to export annotation
Description

format: Desired output format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedAnnotations file is ready to downloadInline
202AcceptedDump of annotations has been startedInline
400Bad RequestExporting without data is not allowedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

POST Method allows to initialize the process of upload task annotations from a local or a cloud storage file

POST /api/tasks/{id}/annotations/

The request POST /api/tasks/id/annotations will initiate file upload and will create
the rq job on the server in which the process of annotations uploading from file
will be carried out. Please, use the PUT /api/tasks/id/annotations endpoint for checking status of the process.

Body Parameters

{}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoAnnotation file name
formatquerystringnoInput format name
locationquerystringnowhere to import the annotation from
use_default_locationquerystringnoUse the location that was configured in task to import annotations
bodybodyobjectnonone
Description

format: Input format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201CreatedUploading has finishedInline
202AcceptedUploading has been startedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

PUT Method allows to upload task annotations or edit existing annotations

PUT /api/tasks/{id}/annotations/

To check the status of the process of uploading a task annotations from a file:

After initiating the annotations upload, you will receive an rq_id parameter.
Make sure to include this parameter as a query parameter in your subsequent
PUT /api/tasks/id/annotations requests to track the status of the annotations upload.

Body Parameters

{}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
formatquerystringnoInput format name
rq_idquerystringnorq id
bodybodyobjectnonone
Description

format: Input format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201CreatedUploading has finishedInline
202AcceptedUploading has been startedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

PATCH Method performs a partial update of annotations in a specific task

PATCH /api/tasks/{id}/annotations/

Body Parameters

version: 0
tags: []
shapes: []
tracks: []

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
actionquerystringyesnone
bodybodyobjectnonone
» versionbodyintegernonone
» tagsbodyarraynonone
» shapesbodyarraynonone
» tracksbodyarraynonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes all annotations for a specific task

DELETE /api/tasks/{id}/annotations/

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe annotation has been deletedInline

Responses Data Schema

GET Method backup a specified task

GET /api/tasks/{id}/backup

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
actionquerystringnoUsed to start downloading process after backup file had been created
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoBackup file name
locationquerystringnoWhere need to save downloaded backup
use_default_locationquerystringnoUse the location that was configured in the task to export backup

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedOutput backup file is ready for downloadingInline
202AcceptedCreating a backup file has been startedInline

Responses Data Schema

GET Method returns data for a specific task

GET /api/tasks/{id}/data/

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
numberqueryintegernoA unique number value identifying chunk or frame
qualityquerystringnoSpecifies the quality level of the requested data
typequerystringnoSpecifies the type of the requested data

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKData of a specific typeInline

Responses Data Schema

POST Method permanently attaches data (images, video, etc.) to a task

POST /api/tasks/{id}/data/

Allows to upload data to a task.
Supports the TUS open file uploading protocol (https://tus.io/).

Supports the following protocols:

  1. A single Data request

and

2.1. An Upload-Start request
2.2.a. Regular TUS protocol requests (Upload-Length + Chunks)
2.2.b. Upload-Multiple requests
2.3. An Upload-Finish request

Requests:

  • Data - POST, no extra headers or ‘Upload-Start’ + ‘Upload-Finish’ headers.
    Contains data in the body.
  • Upload-Start - POST, has an ‘Upload-Start’ header. No body is expected.
  • Upload-Length - POST, has an ‘Upload-Length’ header (see the TUS specification)
  • Chunk - HEAD/PATCH (see the TUS specification). Sent to /data/ endpoints.
  • Upload-Finish - POST, has an ‘Upload-Finish’ header. Can contain data in the body.
  • Upload-Multiple - POST, has an ‘Upload-Multiple’ header. Contains data in the body.

The ‘Upload-Finish’ request allows to specify the uploaded files should be ordered.
This may be needed if the files can be sent unordered. To state that the input files
are sent ordered, pass an empty list of files in the ‘upload_file_order’ field.
If the files are sent unordered, the ordered file list is expected
in the ‘upload_file_order’ field. It must be a list of string file paths,
relative to the dataset root.

Example:
files = [
“cats/cat_1.jpg”,
“dogs/dog2.jpg”,
“image_3.png”,

]

Independently of the file declaration field used
(‘client_files’, ‘server_files’, etc.), when the ‘predefined’
sorting method is selected, the uploaded files will be ordered according
to the ‘.jsonl’ manifest file, if it is found in the list of files.
For archives (e.g. ‘.zip’), a manifest file (‘*.jsonl’) is required when using
the ‘predefined’ file ordering. Such file must be provided next to the archive
in the list of files. Read more about manifest files here:
https://opencv.github.io/cvat/docs/manual/advanced/dataset_manifest/

After all data is sent, the operation status can be retrieved via
the /status endpoint.

Body Parameters

chunk_size: 0
size: 0
image_quality: 0
start_frame: 0
stop_frame: 0
frame_filter: string
compressed_chunk_type: string
original_chunk_type: string
client_files: []
server_files: []
remote_files: []
use_zip_chunks: string
server_files_exclude: []
cloud_storage_id: 0
use_cache: string
copy_data: string
storage_method: string
storage: string
sorting_method: string
filename_pattern: string
job_file_mapping: []
upload_file_order: []

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
Upload-FinishheaderstringnoFinishes data upload. Can be combined with Upload-Start header to create task data with one request
Upload-MultipleheaderstringnoIndicates that data with this request are single or multiple files that should be attached to a task
Upload-StartheaderstringnoInitializes data upload. Optionally, can include upload metadata in the request body.
bodybodyobjectnonone
» chunk_sizebodyintegernoMaximum number of frames per chunk
» sizebodyintegernoThe number of frames
» image_qualitybodyintegeryesImage quality to use during annotation
» start_framebodyintegernoFirst frame index
» stop_framebodyintegernoLast frame index
» frame_filterbodystringnoFrame filter. The only supported syntax is: ‘step=N’
» compressed_chunk_typebodystringnonone
» original_chunk_typebodystringnonone
» client_filesbodystring(binary)noUploaded files
» server_filesbodyarraynoPaths to files from a file share mounted on the server, or from a cloud storage
» remote_filesbodyarraynoDirect download URLs for files
» use_zip_chunksbodystringnoWhen true, video chunks will be represented as zip archives with decoded video frames.
» server_files_excludebodyarraynoPaths to files and directories from a file share mounted on the server, or from a cloud storage
» cloud_storage_idbodyintegernoIf not null, the files referenced by server_files will be retrieved
» use_cachebodystringnoEnable or disable task data chunk caching for the task.
» copy_databodystringnoCopy data from the server file share to CVAT during the task creation.
» storage_methodbodystringnonone
» storagebodystringnonone
» sorting_methodbodystringnonone
» filename_patternbodystringnoA filename filter for cloud storage files
» job_file_mappingbodyarraynoRepresents a file-to-job mapping. Useful to specify a custom job
» upload_file_orderbodyarraynoAllows to specify file order for client_file uploads.
Description

» use_zip_chunks: When true, video chunks will be represented as zip archives with decoded video frames.
When false, video chunks are represented as video segments

» server_files_exclude: Paths to files and directories from a file share mounted on the server, or from a cloud storage
that should be excluded from the directories specified in server_files.
This option cannot be used together with filename_pattern.
The server_files_exclude parameter cannot be used to exclude a part of dataset from an archive.

Examples:

Exclude all files from subfolder 'sub/sub_1/sub_2’and single file ‘sub/image.jpg’ from specified folder:
server_files = [‘sub/’], server_files_exclude = [‘sub/sub_1/sub_2/’, ‘sub/image.jpg’]

Exclude all cloud storage files with prefix ‘sub’ from the content of manifest file:
server_files = [‘manifest.jsonl’], server_files_exclude = [‘sub/’]

» cloud_storage_id: If not null, the files referenced by server_files will be retrieved
from the cloud storage with the specified ID.
The cloud storages applicable depend on the context.
In the user sandbox, only the user sandbox cloud storages can be used.
In an organization, only the organization cloud storages can be used.

» use_cache: Enable or disable task data chunk caching for the task.
Read more: https://opencv.github.io/cvat/docs/manual/advanced/data_on_fly/

» copy_data: Copy data from the server file share to CVAT during the task creation.
This will create a copy of the data, making the server independent from
the file share availability

» filename_pattern: A filename filter for cloud storage files
listed in the manifest. Supports fnmatch wildcards.
Read more: https://docs.python.org/3/library/fnmatch.html

» job_file_mapping: Represents a file-to-job mapping. Useful to specify a custom job
configuration during task creation. This option is not compatible with
most other job split-related options. Files in the jobs must not overlap or repeat.

Example:
[
[“file1.jpg”, “file2.jpg”], # job #1 files
[“file3.png”], # job #2 files
[“file4.jpg”, “file5.png”, “file6.bmp”], # job #3 files
]

» upload_file_order: Allows to specify file order for client_file uploads.
Only valid with the “predefined” sorting method selected.

To state that the input files are sent in the correct order,
pass an empty list.

If you want to send files in an arbitrary order
and reorder them afterwards on the server,
pass the list of file names in the required order.

Response Examples

202 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
202AcceptedNo response bodyInline

Responses Data Schema

GET Method provides a meta information about media files which are related with the task

GET /api/tasks/{id}/data/meta

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Method provides a meta information about media files which are related with the task

PATCH /api/tasks/{id}/data/meta

Body Parameters

{
  "deleted_frames": [
    0
  ]
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
bodybodyPatchedDataMetaWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Export task as a dataset in a specific format

GET /api/tasks/{id}/dataset

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.
actionquerystringnoUsed to start downloading process after annotation file had been created
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoDesired output file name
formatquerystringyesDesired output format name
locationquerystringnoWhere need to save downloaded dataset
use_default_locationquerystringnoUse the location that was configured in task to export annotations
Description

format: Desired output format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedOutput file is ready for downloadingInline
202AcceptedExporting has been startedInline
400Bad RequestExporting without data is not allowedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

GET Method returns a preview image for the task

GET /api/tasks/{id}/preview

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKTask image previewInline
404Not FoundTask image preview not foundInline

Responses Data Schema

GET When task is being created the method returns information about a status of the creation process

GET /api/tasks/{id}/status

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this task.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method recreates a task from an attached task backup file

POST /api/tasks/backup/

The backup import process is as follows:

The first request POST /api/tasks/backup will initiate file upload and will create
the rq job on the server in which the process of a task creating from an uploaded backup
will be carried out.

After initiating the backup upload, you will receive an rq_id parameter.
Make sure to include this parameter as a query parameter in your subsequent requests
to track the status of the task creation.
Once the task has been successfully created, the server will return the id of the newly created task.

Body Parameters

task_file: string

Params

NameLocationTypeRequiredDescription
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoBackup file name
locationquerystringnoWhere to import the backup file from
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
rq_idquerystringnorq id
X-OrganizationheaderstringnoOrganization unique slug
bodybodyobjectnonone
» task_filebodystring(binary)yesnone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201CreatedThe task has been importedInline
202AcceptedImporting a backup file has been startedInline

Responses Data Schema

CVAT/labels

GET Method returns a paginated list of labels

GET /api/labels

Params

NameLocationTypeRequiredDescription
colorquerystringnoA simple equality filter for the color field
filterquerystringnoA filter term. Available filter_fields: [‘name’, ‘parent’, ‘id’, ‘type’, ‘color’, ‘parent_id’]
job_idqueryintegernoA simple equality filter for job id
namequerystringnoA simple equality filter for the name field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
parentquerystringnoA simple equality filter for the parent field
parent_idqueryintegernoA simple equality filter for the parent_id field
project_idqueryintegernoA simple equality filter for project id
searchquerystringnoA search term. Available search_fields: (‘name’, ‘parent’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘name’, ‘parent’, ‘id’, ‘type’, ‘color’, ‘parent_id’]
task_idqueryintegernoA simple equality filter for task id
typequerystringnoA simple equality filter for the type field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns details of a label

GET /api/labels/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this label.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in a labelTo modify a sublabel, please use the PATCH method of the parent label

PATCH /api/labels/{id}

Body Parameters

{
  "id": 0,
  "name": "string",
  "color": "string",
  "attributes": [],
  "deleted": true,
  "type": "string",
  "svg": "string",
  "sublabels": [
    {
      "id": 0,
      "name": "string",
      "color": "string",
      "attributes": [],
      "type": "string",
      "has_parent": true
    }
  ]
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this label.
bodybodyPatchedLabelRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a label. To delete a sublabel, please use the PATCH method of the parent label

DELETE /api/labels/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this label.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe label has been deletedInline

Responses Data Schema

CVAT/lambda

GET Method returns a list of functions

GET /api/lambda/functions

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKNo response bodyInline

Responses Data Schema

GET Method returns the information about the function

GET /api/lambda/functions/{func_id}

Params

NameLocationTypeRequiredDescription
func_idpathstringyesnone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKInformation about the functionInline

Responses Data Schema

POST /api/lambda/functions/{func_id}

POST /api/lambda/functions/{func_id}

Allows to execute a function for immediate computation.

Intended for short-lived executions, useful for interactive calls.

When executed for interactive annotation, the job id must be specified
in the ‘job’ input field. The task id is not required in this case,
but if it is specified, it must match the job task id.

Body Parameters

{
  "job": 0,
  "task": 0
}

Params

NameLocationTypeRequiredDescription
func_idpathstringyesnone
bodybodyOnlineFunctionCallRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKReturns function invocation resultsInline

Responses Data Schema

GET Method returns a list of requests

GET /api/lambda/requests

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method calls the function

POST /api/lambda/requests

Body Parameters

{
  "function": "string",
  "task": 0,
  "job": 0,
  "quality": "original",
  "cleanup": false,
  "convMaskToPoly": false,
  "threshold": 0,
  "mapping": {
    "property1": {
      "property1": "string",
      "property2": "string"
    },
    "property2": {
      "property1": "string",
      "property2": "string"
    }
  },
  "max_distance": 0
}

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyFunctionCallRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns the status of the request

GET /api/lambda/requests/{id}

Params

NameLocationTypeRequiredDescription
idpathstringyesRequest id

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

CVAT/limits

GET Method returns a paginated list of limits according to query parameters

GET /api/limits

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘user_id’, ‘user’, ‘id’]
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘user_id’, ‘user’, ‘id’]
userquerystringnoA simple equality filter for the user field
user_idqueryintegernoA simple equality filter for the user_id field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates a limit

POST /api/limits

Body Parameters

{
  "user": 0,
  "org": 0,
  "type": "default",
  "limits": {
    "tasks": 0,
    "projects": 0,
    "cloud_storages": 0,
    "tasks_per_project": 0,
    "webhooks_per_project": 0,
    "function_calls": 0,
    "automatic_annotation": true,
    "job_export_dataset": true,
    "task_export_dataset": true,
    "project_export_dataset": true,
    "webhooks_per_organization": 0,
    "memberships": 0,
    "organizations": 0
  }
}

Params

NameLocationTypeRequiredDescription
bodybodyLimitRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET /api/limits/{id}

GET /api/limits/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this limit.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PUT /api/limits/{id}

PUT /api/limits/{id}

Body Parameters

{
  "user": 0,
  "org": 0,
  "type": "default",
  "limits": {
    "tasks": 0,
    "projects": 0,
    "cloud_storages": 0,
    "tasks_per_project": 0,
    "webhooks_per_project": 0,
    "function_calls": 0,
    "automatic_annotation": true,
    "job_export_dataset": true,
    "task_export_dataset": true,
    "project_export_dataset": true,
    "webhooks_per_organization": 0,
    "memberships": 0,
    "organizations": 0
  }
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this limit.
bodybodyLimitRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Method updates a limit

PATCH /api/limits/{id}

Body Parameters

{
  "user": 0,
  "org": 0,
  "type": "default",
  "limits": {
    "tasks": 0,
    "projects": 0,
    "cloud_storages": 0,
    "tasks_per_project": 0,
    "webhooks_per_project": 0,
    "function_calls": 0,
    "automatic_annotation": true,
    "job_export_dataset": true,
    "task_export_dataset": true,
    "project_export_dataset": true,
    "webhooks_per_organization": 0,
    "memberships": 0,
    "organizations": 0
  }
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this limit.
bodybodyPatchedLimitRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a limit

DELETE /api/limits/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this limit.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe limit has been deletedInline

Responses Data Schema

GET /api/limits/default

GET /api/limits/default

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

CVAT/memberships

GET Method returns a paginated list of memberships

GET /api/memberships

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘user’, ‘role’, ‘id’]
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
rolequerystringnoA simple equality filter for the role field
searchquerystringnoA search term. Available search_fields: (‘user’, ‘role’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘user’, ‘role’, ‘id’]
userquerystringnoA simple equality filter for the user field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns details of a membership

GET /api/memberships/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this membership.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in a membership

PATCH /api/memberships/{id}

Body Parameters

{
  "role": "worker"
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this membership.
bodybodyPatchedMembershipWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a membership

DELETE /api/memberships/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this membership.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe membership has been deletedInline

Responses Data Schema

CVAT/organizations

GET Method returns a paginated list of organizations

GET /api/organizations

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘name’, ‘owner’, ‘id’, ‘slug’]
namequerystringnoA simple equality filter for the name field
ownerquerystringnoA simple equality filter for the owner field
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
searchquerystringnoA search term. Available search_fields: (‘name’, ‘owner’)
slugquerystringnoA simple equality filter for the slug field
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘name’, ‘owner’, ‘id’, ‘slug’]

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates an organization

POST /api/organizations

Body Parameters

{
  "slug": "string",
  "name": "string",
  "description": "string",
  "contact": {
    "property1": "string",
    "property2": "string"
  }
}

Params

NameLocationTypeRequiredDescription
bodybodyOrganizationWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of an organization

GET /api/organizations/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this organization.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in an organization

PATCH /api/organizations/{id}

Body Parameters

{
  "slug": "string",
  "name": "string",
  "description": "string",
  "contact": {
    "property1": "string",
    "property2": "string"
  }
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this organization.
bodybodyPatchedOrganizationWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes an organization

DELETE /api/organizations/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this organization.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe organization has been deletedInline

Responses Data Schema

CVAT/projects

GET Returns a paginated list of projects

GET /api/projects

Params

NameLocationTypeRequiredDescription
assigneequerystringnoA simple equality filter for the assignee field
filterquerystringnoA filter term. Available filter_fields: [‘name’, ‘owner’, ‘assignee’, ‘status’, ‘id’, ‘updated_date’]
namequerystringnoA simple equality filter for the name field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
ownerquerystringnoA simple equality filter for the owner field
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
searchquerystringnoA search term. Available search_fields: (‘name’, ‘owner’, ‘assignee’, ‘status’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘name’, ‘owner’, ‘assignee’, ‘status’, ‘id’, ‘updated_date’]
statusquerystringnoA simple equality filter for the status field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates a new project

POST /api/projects

Body Parameters

{
  "name": "string",
  "labels": [],
  "owner_id": 0,
  "assignee_id": 0,
  "bug_tracker": "string",
  "target_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "source_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "task_subsets": [
    "string"
  ]
}

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyProjectWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of a specific project

GET /api/projects/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this project.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in a project

PATCH /api/projects/{id}

Body Parameters

{
  "name": "string",
  "labels": [],
  "owner_id": 0,
  "assignee_id": 0,
  "bug_tracker": "string",
  "target_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "source_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "task_subsets": [
    "string"
  ]
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this project.
bodybodyPatchedProjectWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a specific project

DELETE /api/projects/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this project.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe project has been deletedInline

Responses Data Schema

GET Method allows to download project annotations

GET /api/projects/{id}/annotations

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this project.
actionquerystringnoUsed to start downloading process after annotation file had been created
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoDesired output file name
formatquerystringyesDesired output format name
locationquerystringnoWhere need to save downloaded dataset
use_default_locationquerystringnoUse the location that was configured in project to export annotation
Description

format: Desired output format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedAnnotations file is ready to downloadInline
202AcceptedDump of annotations has been startedInline
401UnauthorizedFormat is not specifiedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

GET Methods creates a backup copy of a project

GET /api/projects/{id}/backup

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this project.
actionquerystringnoUsed to start downloading process after backup file had been created
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoBackup file name
locationquerystringnoWhere need to save downloaded backup
use_default_locationquerystringnoUse the location that was configured in project to export backup

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedOutput backup file is ready for downloadingInline
202AcceptedCreating a backup file has been startedInline

Responses Data Schema

GET Export project as a dataset in a specific format

GET /api/projects/{id}/dataset/

To check the status of the process of importing a project dataset from a file:

After initiating the dataset upload, you will receive an rq_id parameter.
Make sure to include this parameter as a query parameter in your subsequent
GET /api/projects/id/dataset requests to track the status of the dataset import.
Also you should specify action parameter: action=import_status.

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this project.
actionquerystringnoUsed to start downloading process after annotation file had been created
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoDesired output file name
formatquerystringnoDesired output format name
locationquerystringnoWhere need to save downloaded dataset
rq_idquerystringnorq id
use_default_locationquerystringnoUse the location that was configured in project to import dataset
Description

format: Desired output format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKDownload of file startedInline
201CreatedOutput file is ready for downloadingInline
202AcceptedExporting has been startedInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

POST Import dataset in specific format as a project or check status of dataset import process

POST /api/projects/{id}/dataset/

The request POST /api/projects/id/dataset will initiate file upload and will create
the rq job on the server in which the process of dataset import from a file
will be carried out. Please, use the GET /api/projects/id/dataset endpoint for checking status of the process.

Body Parameters

{}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this project.
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoDataset file name
formatquerystringnoDesired dataset format name
locationquerystringnoWhere to import the dataset from
use_default_locationquerystringnoUse the location that was configured in the project to import annotations
bodybodyobjectnonone
Description

format: Desired dataset format name
You can get the list of supported formats at:
/server/annotation/formats

Response Examples

202 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
202AcceptedImporting has been startedInline
400Bad RequestFailed to import datasetInline
405Method Not AllowedFormat is not availableInline

Responses Data Schema

GET Method returns a preview image for the project

GET /api/projects/{id}/preview

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this project.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKProject image previewInline
404Not FoundProject image preview not foundInline

Responses Data Schema

POST Methods create a project from a backup

POST /api/projects/backup/

The backup import process is as follows:

The first request POST /api/projects/backup will initiate file upload and will create
the rq job on the server in which the process of a project creating from an uploaded backup
will be carried out.

After initiating the backup upload, you will receive an rq_id parameter.
Make sure to include this parameter as a query parameter in your subsequent requests
to track the status of the project creation.
Once the project has been successfully created, the server will return the id of the newly created project.

Body Parameters

{}

Params

NameLocationTypeRequiredDescription
cloud_storage_idquerynumbernoStorage id
filenamequerystringnoBackup file name
locationquerystringnoWhere to import the backup file from
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
rq_idquerystringnorq id
X-OrganizationheaderstringnoOrganization unique slug
bodybodyobjectnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201CreatedThe project has been importedInline
202AcceptedImporting a backup file has been startedInline

Responses Data Schema

CVAT/quality

GET Method returns a paginated list of annotation conflicts

GET /api/quality/conflicts

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘id’, ‘frame’, ‘type’, ‘job_id’, ‘task_id’, ‘severity’]
framequeryintegernoA simple equality filter for the frame field
job_idqueryintegernoA simple equality filter for the job_id field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
report_idqueryintegernoA simple equality filter for report id
severityquerystringnoA simple equality filter for the severity field
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘id’, ‘frame’, ‘type’, ‘job_id’, ‘task_id’, ‘severity’]
task_idqueryintegernoA simple equality filter for the task_id field
typequerystringnoA simple equality filter for the type field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns a paginated list of quality reports

GET /api/quality/reports

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘id’, ‘job_id’, ‘created_date’, ‘gt_last_updated’, ‘target_last_updated’, ‘parent_id’]
job_idqueryintegernoA simple equality filter for the job_id field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
parent_idqueryintegernoA simple equality filter for the parent_id field
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘id’, ‘job_id’, ‘created_date’, ‘gt_last_updated’, ‘target_last_updated’, ‘parent_id’]
targetquerystringnoA simple equality filter for target
task_idqueryintegernoA simple equality filter for task id
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Creates a quality report asynchronously and allows to check request status

POST /api/quality/reports

Body Parameters

{
  "task_id": 0
}

Params

NameLocationTypeRequiredDescription
rq_idquerystringnoThe report creation request id. Can be specified to check the report
bodybodyQualityReportCreateRequestnonone
Description

rq_id: The report creation request id. Can be specified to check the report
creation status.

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline
202AcceptedA quality report request has been enqueued, the request id is returned.
The request status can be checked at this endpoint by passing the rq_id
as the query parameter. If the request id is specified, this response
means the quality report request is queueInline
400Bad RequestInvalid or failed request, check the response data for detailsInline

Responses Data Schema

GET Method returns details of a quality report

GET /api/quality/reports/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this quality report.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Retrieve full contents of the report in JSON format

GET /api/quality/reports/{id}/data

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this quality report.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns a paginated list of quality settings instances

GET /api/quality/settings

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘id’, ‘task_id’]
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘id’]
task_idqueryintegernoA simple equality filter for the task_id field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method returns details of the quality settings instance

GET /api/quality/settings/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesAn id of a quality settings instance

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in the quality settings instance

PATCH /api/quality/settings/{id}

Body Parameters

{
  "iou_threshold": 0,
  "oks_sigma": 0,
  "line_thickness": 0,
  "low_overlap_threshold": 0,
  "compare_line_orientation": true,
  "line_orientation_threshold": 0,
  "compare_groups": true,
  "group_match_threshold": 0,
  "check_covered_annotations": true,
  "object_visibility_threshold": 0,
  "panoptic_comparison": true,
  "compare_attributes": true
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesAn id of a quality settings instance
bodybodyPatchedQualitySettingsRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

CVAT/schema

GET /api/schema/

GET /api/schema/

OpenApi3 schema for this API. Format can be selected via content negotiation.

  • YAML: application/vnd.oai.openapi
  • JSON: application/vnd.oai.openapi+json

Params

NameLocationTypeRequiredDescription
langquerystringnonone
schemequerystringnonone

Response Examples

200 Response

{
  "property1": "string",
  "property2": "string"
}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

HTTP Status Code 200

NameTypeRequiredRestrictionsTitledescription
» additionalPropertiesstringfalsenonenone

CVAT/server

GET Method provides basic CVAT information

GET /api/server/about

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method provides the list of supported annotations formats

GET /api/server/annotation/formats

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method provides allowed plugins

GET /api/server/plugins

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Returns all files and folders that are on the server along specified path

GET /api/server/share

Params

NameLocationTypeRequiredDescription
directoryquerystringnoDirectory to browse

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

CVAT/usage

GET Method returns a paginated list of usage according to query parameters

GET /api/usage

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘user_id’, ‘user’]
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘user_id’, ‘user’]
userquerystringnoA simple equality filter for the user field
user_idqueryintegernoA simple equality filter for the user_id field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

CVAT/subscriptions

GET Method provides user agreements that the user must accept to register

GET /api/user-agreements

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

CVAT/users

GET Method returns a paginated list of users

GET /api/users

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘username’, ‘first_name’, ‘last_name’, ‘id’, ‘is_active’]
first_namequerystringnoA simple equality filter for the first_name field
is_activequerystringnoA simple equality filter for the is_active field
last_namequerystringnoA simple equality filter for the last_name field
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
searchquerystringnoA search term. Available search_fields: (‘username’, ‘first_name’, ‘last_name’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘username’, ‘first_name’, ‘last_name’, ‘id’, ‘is_active’]
usernamequerystringnoA simple equality filter for the username field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method provides information of a specific user

GET /api/users/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this user.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Method updates chosen fields of a user

PATCH /api/users/{id}

Body Parameters

{
  "username": "string",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "groups": [
    "string"
  ],
  "is_staff": true,
  "is_superuser": true,
  "is_active": true
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this user.
bodybodyPatchedUserRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a specific user from the server

DELETE /api/users/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this user.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe user has been deletedInline

Responses Data Schema

GET Method returns an instance of a user who is currently authorized

GET /api/users/self

Method returns an instance of a user who is currently authorized

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

CVAT/webhooks

GET Method returns a paginated list of webhook according to query parameters

GET /api/webhooks

Params

NameLocationTypeRequiredDescription
filterquerystringnoA filter term. Available filter_fields: [‘target_url’, ‘owner’, ‘type’, ‘description’, ‘id’, ‘project_id’, ‘updated_date’]
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
ownerquerystringnoA simple equality filter for the owner field
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.
project_idqueryintegernoA simple equality filter for the project_id field
searchquerystringnoA search term. Available search_fields: (‘target_url’, ‘owner’, ‘type’, ‘description’)
sortquerystringnoWhich field to use when ordering the results. Available ordering_fields: [‘target_url’, ‘owner’, ‘type’, ‘description’, ‘id’, ‘project_id’, ‘updated_date’]
target_urlquerystringnoA simple equality filter for the target_url field
typequerystringnoA simple equality filter for the type field
X-OrganizationheaderstringnoOrganization unique slug

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method creates a webhook

POST /api/webhooks

Body Parameters

{
  "target_url": "http://example.com",
  "description": "string",
  "type": "organization",
  "content_type": "application/json",
  "secret": "string",
  "is_active": true,
  "enable_ssl": true,
  "project_id": 0,
  "events": [
    {}
  ]
}

Params

NameLocationTypeRequiredDescription
orgquerystringnoOrganization unique slug
org_idqueryintegernoOrganization identifier
X-OrganizationheaderstringnoOrganization unique slug
bodybodyWebhookWriteRequestnonone

Response Examples

201 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
201Created成功Inline

Responses Data Schema

GET Method returns details of a webhook

GET /api/webhooks/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this webhook.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PUT Method updates a webhook by id

PUT /api/webhooks/{id}

Body Parameters

{
  "target_url": "http://example.com",
  "description": "string",
  "type": "organization",
  "content_type": "application/json",
  "secret": "string",
  "is_active": true,
  "enable_ssl": true,
  "project_id": 0,
  "events": [
    {}
  ]
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this webhook.
bodybodyWebhookWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

PATCH Methods does a partial update of chosen fields in a webhook

PATCH /api/webhooks/{id}

Body Parameters

{
  "target_url": "http://example.com",
  "description": "string",
  "content_type": "application/json",
  "secret": "string",
  "is_active": true,
  "enable_ssl": true,
  "events": [
    {}
  ]
}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this webhook.
bodybodyPatchedWebhookWriteRequestnonone

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

DELETE Method deletes a webhook

DELETE /api/webhooks/{id}

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this webhook.

Response Examples

204 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
204No ContentThe webhook has been deletedInline

Responses Data Schema

GET Method return a list of deliveries for a specific webhook

GET /api/webhooks/{id}/deliveries

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this webhook.
pagequeryintegernoA page number within the paginated result set.
page_sizequeryintegernoNumber of results to return per page.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method return a specific delivery for a specific webhook

GET /api/webhooks/{id}/deliveries/{delivery_id}

Params

NameLocationTypeRequiredDescription
delivery_idpathstringyesnone
idpathintegeryesA unique integer value identifying this webhook.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

POST Method redeliver a specific webhook delivery

POST /api/webhooks/{id}/deliveries/{delivery_id}/redelivery

Params

NameLocationTypeRequiredDescription
delivery_idpathstringyesnone
idpathintegeryesA unique integer value identifying this webhook.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OKNo response bodyInline

Responses Data Schema

POST Method send ping webhook

POST /api/webhooks/{id}/ping

Params

NameLocationTypeRequiredDescription
idpathintegeryesA unique integer value identifying this webhook.

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

GET Method return a list of available webhook events

GET /api/webhooks/events

Params

NameLocationTypeRequiredDescription
typequerystringnoType of webhook

Response Examples

200 Response

{}

Responses

HTTP Status CodeMeaningDescriptionData schema
200OK成功Inline

Responses Data Schema

Data Schema

SocialLoginSerializerExRequest




{
  "access_token": "string",
  "code": "string",
  "id_token": "string",
  "auth_params": "",
  "process": "login",
  "scope": ""
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
access_tokenstringfalsenonenone
codestringfalsenonenone
id_tokenstringfalsenonenone
auth_paramsstringfalsenonenone
processstringfalsenonenone
scopestringfalsenonenone

PatchedQualitySettingsRequest




{
  "iou_threshold": 0,
  "oks_sigma": 0,
  "line_thickness": 0,
  "low_overlap_threshold": 0,
  "compare_line_orientation": true,
  "line_orientation_threshold": 0,
  "compare_groups": true,
  "group_match_threshold": 0,
  "check_covered_annotations": true,
  "object_visibility_threshold": 0,
  "panoptic_comparison": true,
  "compare_attributes": true
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
iou_thresholdnumber(double)falsenoneUsed for distinction between matched / unmatched shapes
oks_sigmanumber(double)falsenoneLike IoU threshold, but for points.
The percent of the bbox area, used as the radius of the circle around the GT point,
where the checked point is expected to be.
Read more: https://cocodataset.org/#keypoints-eval
line_thicknessnumber(double)falsenoneThickness of polylines, relatively to the (image area) ^ 0.5.
The distance to the boundary around the GT line,
inside of which the checked line points should be
low_overlap_thresholdnumber(double)falsenoneUsed for distinction between strong / weak (low_overlap) matches
compare_line_orientationbooleanfalsenoneEnables or disables polyline orientation comparison
line_orientation_thresholdnumber(double)falsenoneThe minimal gain in the GT IoU between the given and reversed line directions
to consider the line inverted.
Only used when the ‘compare_line_orientation’ parameter is true
compare_groupsbooleanfalsenoneEnables or disables annotation group checks
group_match_thresholdnumber(double)falsenoneMinimal IoU for groups to be considered matching.
Only used when the ‘compare_groups’ parameter is true
check_covered_annotationsbooleanfalsenoneCheck for partially-covered annotations, useful in segmentation tasks
object_visibility_thresholdnumber(double)falsenoneMinimal visible area percent of the spatial annotations (polygons, masks)
for reporting covered annotations.
Only used when the ‘object_visibility_threshold’ parameter is true
panoptic_comparisonbooleanfalsenoneUse only the visible part of the masks and polygons in comparisons
compare_attributesbooleanfalsenoneEnables or disables annotation attribute comparison

SigningRequest




{
  "url": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
urlstringtruenonenone

RegisterSerializerWithSubscriptionsRequest




{
  "username": "string",
  "email": "user@example.com",
  "password1": "string",
  "password2": "string",
  "first_name": "string",
  "last_name": "string",
  "confirmations": [
    {
      "name": "string",
      "url_display_text": "",
      "url": "",
      "text_prefix": "",
      "required": false,
      "value": false
    }
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
usernamestringtruenonenone
emailstring(email)truenonenone
password1stringtruewrite-onlynone
password2stringtruewrite-onlynone
first_namestringfalsenonenone
last_namestringfalsenonenone
confirmations[UserAgreementRequest]falsenonenone

UserAgreementRequest




{
  "name": "string",
  "url_display_text": "",
  "url": "",
  "text_prefix": "",
  "required": false,
  "value": false
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
namestringtruenonenone
url_display_textstringfalsenonenone
urlstringfalsenonenone
text_prefixstringfalsenonenone
requiredbooleanfalsenonenone
valuebooleanfalsenonenone

PatchedWebhookWriteRequest




{
  "target_url": "http://example.com",
  "description": "string",
  "content_type": "application/json",
  "secret": "string",
  "is_active": true,
  "enable_ssl": true,
  "events": [
    {}
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
target_urlstring(uri)falsenonenone
descriptionstringfalsenonenone
content_typeWebhookContentTypefalsenone* application/json - JSON
secretstringfalsenonenone
is_activebooleanfalsenonenone
enable_sslbooleanfalsenonenone
events[object]falsewrite-onlynone

WebhookContentType




"application/json"

  • application/json - JSON

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* application/json - JSON
Enum
NameValue
anonymousapplication/json

PatchedLimitRequest




{
  "user": 0,
  "org": 0,
  "type": "default",
  "limits": {
    "tasks": 0,
    "projects": 0,
    "cloud_storages": 0,
    "tasks_per_project": 0,
    "webhooks_per_project": 0,
    "function_calls": 0,
    "automatic_annotation": true,
    "job_export_dataset": true,
    "task_export_dataset": true,
    "project_export_dataset": true,
    "webhooks_per_organization": 0,
    "memberships": 0,
    "organizations": 0
  }
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
userinteger¦nullfalsenonenone
orginteger¦nullfalsenonenone
typeLimitTypeEnumfalsenone* default - DEFAULT
* paid - PAID
* custom - CUSTOM
limitsLimitsFieldRequestfalsenoneThe serializer validates limits field names and their value types.
Null allowed in order to indicate unlimited value.

LimitsFieldRequest




{
  "tasks": 0,
  "projects": 0,
  "cloud_storages": 0,
  "tasks_per_project": 0,
  "webhooks_per_project": 0,
  "function_calls": 0,
  "automatic_annotation": true,
  "job_export_dataset": true,
  "task_export_dataset": true,
  "project_export_dataset": true,
  "webhooks_per_organization": 0,
  "memberships": 0,
  "organizations": 0
}

The serializer validates limits field names and their value types.
Null allowed in order to indicate unlimited value.

Attribute

NameTypeRequiredRestrictionsTitleDescription
tasksinteger¦nulltruenonenone
projectsinteger¦nulltruenonenone
cloud_storagesinteger¦nulltruenonenone
tasks_per_projectinteger¦nulltruenonenone
webhooks_per_projectinteger¦nulltruenonenone
function_callsinteger¦nulltruenonenone
automatic_annotationboolean¦nulltruenonenone
job_export_datasetboolean¦nulltruenonenone
task_export_datasetboolean¦nulltruenonenone
project_export_datasetboolean¦nulltruenonenone
webhooks_per_organizationinteger¦nullfalsenonenone
membershipsinteger¦nullfalsenonenone
organizationsinteger¦nullfalsenonenone

LimitTypeEnum




"default"

  • default - DEFAULT
  • paid - PAID
  • custom - CUSTOM

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* default - DEFAULT
* paid - PAID
* custom - CUSTOM
Enum
NameValue
anonymousdefault
anonymouspaid
anonymouscustom

FunctionCallRequest




{
  "function": "string",
  "task": 0,
  "job": 0,
  "quality": "original",
  "cleanup": false,
  "convMaskToPoly": false,
  "threshold": 0,
  "mapping": {
    "property1": {
      "property1": "string",
      "property2": "string"
    },
    "property2": {
      "property1": "string",
      "property2": "string"
    }
  },
  "max_distance": 0
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
functionstringtruenoneThe name of the function to execute
taskintegertruenoneThe id of the task to annotate
jobintegerfalsenoneThe id of the job to annotate
qualityQualityEnumfalsenoneThe quality of the images to use in the model run

* compressed - compressed
* original - original
cleanupbooleanfalsenonenone
convMaskToPolybooleanfalsenonenone
thresholdnumber(double)falsenonenone
mappingobjectfalsenoneLabel mapping from the model to the task labels
» additionalPropertiesobjectfalsenonenone
»» additionalPropertiesstringfalsenonenone
max_distanceintegerfalsenonenone

QualityEnum




"compressed"

  • compressed - compressed
  • original - original

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* compressed - compressed
* original - original
Enum
NameValue
anonymouscompressed
anonymousoriginal

PatchedTaskWriteRequest




{
  "name": "string",
  "project_id": 0,
  "owner_id": 0,
  "assignee_id": 0,
  "bug_tracker": "string",
  "labels": [
    {
      "id": 0,
      "name": "string",
      "color": "string",
      "attributes": [],
      "deleted": true,
      "type": "string",
      "svg": "string",
      "sublabels": [
        {
          "id": 0,
          "name": "string",
          "color": "string",
          "attributes": [],
          "type": "string",
          "has_parent": true
        }
      ]
    }
  ],
  "subset": "string",
  "target_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "source_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  }
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
namestringfalsenonenone
project_idinteger¦nullfalsenonenone
owner_idinteger¦nullfalsewrite-onlynone
assignee_idinteger¦nullfalsewrite-onlynone
bug_trackerstringfalsenonenone
labels[PatchedLabelRequest]falsenonenone
subsetstringfalsenonenone
target_storageStorageRequestfalsenonenone
source_storageStorageRequestfalsenonenone

StorageRequest




{
  "location": "cloud_storage",
  "cloud_storage_id": -2147483648
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
locationLocationEnumfalsenone* cloud_storage - CLOUD_STORAGE
* local - LOCAL
cloud_storage_idinteger¦nullfalsenonenone

LocationEnum




"cloud_storage"

  • cloud_storage - CLOUD_STORAGE
  • local - LOCAL

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* cloud_storage - CLOUD_STORAGE
* local - LOCAL
Enum
NameValue
anonymouscloud_storage
anonymouslocal

PatchedLabelRequest




{
  "id": 0,
  "name": "string",
  "color": "string",
  "attributes": [],
  "deleted": true,
  "type": "string",
  "svg": "string",
  "sublabels": [
    {
      "id": 0,
      "name": "string",
      "color": "string",
      "attributes": [],
      "type": "string",
      "has_parent": true
    }
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
idintegerfalsenonenone
namestringfalsenonenone
colorstringfalsenoneThe hex value for the RGB color. Will be generated automatically, unless specified explicitly.
attributes[AttributeRequest]falsenoneThe list of attributes. If you want to remove an attribute, you need to recreate the label and specify the remaining attributes.
deletedbooleanfalsewrite-onlyDelete the label. Only applicable in the PATCH methods of a project or a task.
typestringfalsenoneAssociated annotation type for this label
svgstringfalsenonenone
sublabels[SublabelRequest]falsenonenone

SublabelRequest




{
  "id": 0,
  "name": "string",
  "color": "string",
  "attributes": [],
  "type": "string",
  "has_parent": true
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
idintegerfalsenonenone
namestringtruenonenone
colorstringfalsenoneThe hex value for the RGB color. Will be generated automatically, unless specified explicitly.
attributes[AttributeRequest]falsenoneThe list of attributes. If you want to remove an attribute, you need to recreate the label and specify the remaining attributes.
typestringfalsenoneAssociated annotation type for this label
has_parentbooleanfalsenonenone

AttributeRequest




{
  "name": "string",
  "mutable": true,
  "input_type": "checkbox",
  "default_value": "string",
  "values": [
    "string"
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
namestringtruenonenone
mutablebooleantruenonenone
input_typeInputTypeEnumtruenone* checkbox - CHECKBOX
* radio - RADIO
* number - NUMBER
* text - TEXT
* select - SELECT
default_valuestringtruenonenone
values[string]truenonenone

InputTypeEnum




"checkbox"

  • checkbox - CHECKBOX
  • radio - RADIO
  • number - NUMBER
  • text - TEXT
  • select - SELECT

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* checkbox - CHECKBOX
* radio - RADIO
* number - NUMBER
* text - TEXT
* select - SELECT
Enum
NameValue
anonymouscheckbox
anonymousradio
anonymousnumber
anonymoustext
anonymousselect

PasswordResetConfirmRequest




{
  "new_password1": "string",
  "new_password2": "string",
  "uid": "string",
  "token": "string"
}

Serializer for confirming a password reset attempt.

Attribute

NameTypeRequiredRestrictionsTitleDescription
new_password1stringtruenonenone
new_password2stringtruenonenone
uidstringtruenonenone
tokenstringtruenonenone

PatchedProjectWriteRequest




{
  "name": "string",
  "labels": [],
  "owner_id": 0,
  "assignee_id": 0,
  "bug_tracker": "string",
  "target_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "source_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "task_subsets": [
    "string"
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
namestringfalsenonenone
labels[PatchedLabelRequest]falsewrite-onlynone
owner_idinteger¦nullfalsewrite-onlynone
assignee_idinteger¦nullfalsewrite-onlynone
bug_trackerstringfalsenonenone
target_storageStorageRequestfalsewrite-onlynone
source_storageStorageRequestfalsewrite-onlynone
task_subsets[string]falsewrite-onlynone

PatchedOrganizationWriteRequest




{
  "slug": "string",
  "name": "string",
  "description": "string",
  "contact": {
    "property1": "string",
    "property2": "string"
  }
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
slugstringfalsenonenone
namestringfalsenonenone
descriptionstringfalsenonenone
contactobjectfalsenonenone
» additionalPropertiesstringfalsenonenone

PatchedJobWriteRequest




{
  "assignee": 0,
  "stage": "annotation",
  "state": "new"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
assigneeinteger¦nullfalsenonenone
stageJobStagefalsenone* annotation - ANNOTATION
* validation - VALIDATION
* acceptance - ACCEPTANCE
stateOperationStatusfalsenone* new - NEW
* in progress - IN_PROGRESS
* completed - COMPLETED
* rejected - REJECTED

OperationStatus




"new"

  • new - NEW
  • in progress - IN_PROGRESS
  • completed - COMPLETED
  • rejected - REJECTED

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* new - NEW
* in progress - IN_PROGRESS
* completed - COMPLETED
* rejected - REJECTED
Enum
NameValue
anonymousnew
anonymousin progress
anonymouscompleted
anonymousrejected

JobStage




"annotation"

  • annotation - ANNOTATION
  • validation - VALIDATION
  • acceptance - ACCEPTANCE

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* annotation - ANNOTATION
* validation - VALIDATION
* acceptance - ACCEPTANCE
Enum
NameValue
anonymousannotation
anonymousvalidation
anonymousacceptance

PatchedIssueWriteRequest




{
  "position": [
    0
  ],
  "assignee": 0,
  "resolved": true
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
position[number]falsenonenone
assigneeinteger¦nullfalsenonenone
resolvedbooleanfalsenonenone

PatchedInvitationWriteRequest




{
  "role": "worker",
  "email": "user@example.com"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
roleRoleEnumfalsenone* worker - Worker
* supervisor - Supervisor
* maintainer - Maintainer
* owner - Owner
emailstring(email)falsenonenone

RoleEnum




"worker"

  • worker - Worker
  • supervisor - Supervisor
  • maintainer - Maintainer
  • owner - Owner

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* worker - Worker
* supervisor - Supervisor
* maintainer - Maintainer
* owner - Owner
Enum
NameValue
anonymousworker
anonymoussupervisor
anonymousmaintainer
anonymousowner

PatchedCommentWriteRequest




{
  "message": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
messagestringfalsenonenone

PasswordResetSerializerExRequest




{
  "email": "user@example.com"
}

Serializer for requesting a password reset e-mail.

Attribute

NameTypeRequiredRestrictionsTitleDescription
emailstring(email)truenonenone

PatchedUserRequest




{
  "username": "string",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "groups": [
    "string"
  ],
  "is_staff": true,
  "is_superuser": true,
  "is_active": true
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
usernamestringfalsenoneRequired. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
first_namestringfalsenonenone
last_namestringfalsenonenone
emailstring(email)falsenoneEmail addressnone
groups[string]falsenonenone
is_staffbooleanfalsenoneStaff statusDesignates whether the user can log into this admin site.
is_superuserbooleanfalsenoneSuperuser statusDesignates that this user has all permissions without explicitly assigning them.
is_activebooleanfalsenoneActiveDesignates whether this user should be treated as active. Unselect this instead of deleting accounts.

QualityReportCreateRequest




{
  "task_id": 0
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
task_idintegertruewrite-onlynone

PatchedMembershipWriteRequest




{
  "role": "worker"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
roleRoleEnumfalsenone* worker - Worker
* supervisor - Supervisor
* maintainer - Maintainer
* owner - Owner

OnlineFunctionCallRequest




{
  "job": 0,
  "task": 0
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
jobintegerfalsenonenone
taskintegerfalsenonenone

TaskWriteRequest




{
  "name": "string",
  "project_id": 0,
  "owner_id": 0,
  "assignee_id": 0,
  "bug_tracker": "string",
  "overlap": 2147483647,
  "segment_size": 2147483647,
  "labels": [
    {
      "id": 0,
      "name": "string",
      "color": "string",
      "attributes": [],
      "deleted": true,
      "type": "string",
      "svg": "string",
      "sublabels": [
        {
          "id": 0,
          "name": "string",
          "color": "string",
          "attributes": [],
          "type": "string",
          "has_parent": true
        }
      ]
    }
  ],
  "subset": "string",
  "target_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "source_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  }
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
namestringtruenonenone
project_idinteger¦nullfalsenonenone
owner_idinteger¦nullfalsewrite-onlynone
assignee_idinteger¦nullfalsewrite-onlynone
bug_trackerstringfalsenonenone
overlapinteger¦nullfalsenonenone
segment_sizeintegerfalsenonenone
labels[PatchedLabelRequest]falsenonenone
subsetstringfalsenonenone
target_storageStorageRequestfalsenonenone
source_storageStorageRequestfalsenonenone

PatchedAnnotationGuideWriteRequest




{
  "task_id": 0,
  "project_id": 0,
  "markdown": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
task_idinteger¦nullfalsenonenone
project_idinteger¦nullfalsenonenone
markdownstringfalsenonenone

PasswordChangeRequest




{
  "old_password": "string",
  "new_password1": "string",
  "new_password2": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
old_passwordstringtruenonenone
new_password1stringtruenonenone
new_password2stringtruenonenone

WebhookWriteRequest




{
  "target_url": "http://example.com",
  "description": "string",
  "type": "organization",
  "content_type": "application/json",
  "secret": "string",
  "is_active": true,
  "enable_ssl": true,
  "project_id": 0,
  "events": [
    {}
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
target_urlstring(uri)truenonenone
descriptionstringfalsenonenone
typeWebhookTypetruenone* organization - ORGANIZATION
* project - PROJECT
content_typeWebhookContentTypefalsenone* application/json - JSON
secretstringfalsenonenone
is_activebooleanfalsenonenone
enable_sslbooleanfalsenonenone
project_idinteger¦nullfalsewrite-onlynone
events[object]truewrite-onlynone

WebhookType




"organization"

  • organization - ORGANIZATION
  • project - PROJECT

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* organization - ORGANIZATION
* project - PROJECT
Enum
NameValue
anonymousorganization
anonymousproject

ProjectWriteRequest




{
  "name": "string",
  "labels": [],
  "owner_id": 0,
  "assignee_id": 0,
  "bug_tracker": "string",
  "target_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "source_storage": {
    "location": "cloud_storage",
    "cloud_storage_id": -2147483648
  },
  "task_subsets": [
    "string"
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
namestringtruenonenone
labels[PatchedLabelRequest]falsewrite-onlynone
owner_idinteger¦nullfalsewrite-onlynone
assignee_idinteger¦nullfalsewrite-onlynone
bug_trackerstringfalsenonenone
target_storageStorageRequestfalsewrite-onlynone
source_storageStorageRequestfalsewrite-onlynone
task_subsets[string]falsewrite-onlynone

OrganizationWriteRequest




{
  "slug": "string",
  "name": "string",
  "description": "string",
  "contact": {
    "property1": "string",
    "property2": "string"
  }
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
slugstringtruenonenone
namestringfalsenonenone
descriptionstringfalsenonenone
contactobjectfalsenonenone
» additionalPropertiesstringfalsenonenone

LimitRequest




{
  "user": 0,
  "org": 0,
  "type": "default",
  "limits": {
    "tasks": 0,
    "projects": 0,
    "cloud_storages": 0,
    "tasks_per_project": 0,
    "webhooks_per_project": 0,
    "function_calls": 0,
    "automatic_annotation": true,
    "job_export_dataset": true,
    "task_export_dataset": true,
    "project_export_dataset": true,
    "webhooks_per_organization": 0,
    "memberships": 0,
    "organizations": 0
  }
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
userinteger¦nullfalsenonenone
orginteger¦nullfalsenonenone
typeLimitTypeEnumtruenone* default - DEFAULT
* paid - PAID
* custom - CUSTOM
limitsLimitsFieldRequesttruenoneThe serializer validates limits field names and their value types.
Null allowed in order to indicate unlimited value.

JobWriteRequest




{
  "assignee": 0,
  "stage": "annotation",
  "state": "new",
  "type": "annotation",
  "task_id": 0,
  "frame_selection_method": "random_uniform",
  "frame_count": 0,
  "seed": 0,
  "frames": [
    0
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
assigneeinteger¦nullfalsenonenone
stageJobStagefalsenone* annotation - ANNOTATION
* validation - VALIDATION
* acceptance - ACCEPTANCE
stateOperationStatusfalsenone* new - NEW
* in progress - IN_PROGRESS
* completed - COMPLETED
* rejected - REJECTED
typeJobTypetruenone* annotation - ANNOTATION
* ground_truth - GROUND_TRUTH
task_idintegertruenonenone
frame_selection_methodFrameSelectionMethodEnumfalsenone* random_uniform - RANDOM_UNIFORM
* manual - MANUAL
frame_countintegerfalsenoneThe number of frames included in the job.
Applicable only to the random frame selection
seedintegerfalsenoneThe seed value for the random number generator.
The same value will produce the same frame sets.
Applicable only to the random frame selection.
By default, a random value is used.
frames[integer]falsenoneThe list of frame ids. Applicable only to the manual frame selection

FrameSelectionMethodEnum




"random_uniform"

  • random_uniform - RANDOM_UNIFORM
  • manual - MANUAL

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* random_uniform - RANDOM_UNIFORM
* manual - MANUAL
Enum
NameValue
anonymousrandom_uniform
anonymousmanual

JobType




"annotation"

  • annotation - ANNOTATION
  • ground_truth - GROUND_TRUTH

Attribute

NameTypeRequiredRestrictionsTitleDescription
anonymousstringfalsenone* annotation - ANNOTATION
* ground_truth - GROUND_TRUTH
Enum
NameValue
anonymousannotation
anonymousground_truth

IssueWriteRequest




{
  "frame": 2147483647,
  "position": [
    0
  ],
  "job": 0,
  "assignee": 0,
  "message": "string",
  "resolved": true
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
frameintegertruenonenone
position[number]truenonenone
jobintegertruenonenone
assigneeinteger¦nullfalsenonenone
messagestringtruenonenone
resolvedbooleanfalsenonenone

InvitationWriteRequest




{
  "role": "worker",
  "email": "user@example.com"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
roleRoleEnumtruenone* worker - Worker
* supervisor - Supervisor
* maintainer - Maintainer
* owner - Owner
emailstring(email)truenonenone

FunctionRequest




{
  "provider": "string",
  "url": "string",
  "api_key": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
providerstringfalsenonenone
urlstringfalsenonenone
api_keystringfalsewrite-onlynone

ClientEventsRequest




{
  "events": [],
  "timestamp": "2019-08-24T14:15:22Z"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
events[EventRequest]falsenonenone
timestampstring(date-time)truenonenone

EventRequest




{
  "scope": "string",
  "obj_name": "string",
  "obj_id": 0,
  "obj_val": "string",
  "source": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "count": 0,
  "duration": 0,
  "project_id": 0,
  "task_id": 0,
  "job_id": 0,
  "user_id": 0,
  "user_name": "string",
  "user_email": "string",
  "org_id": 0,
  "org_slug": "string",
  "payload": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
scopestringtruenonenone
obj_namestring¦nullfalsenonenone
obj_idinteger¦nullfalsenonenone
obj_valstring¦nullfalsenonenone
sourcestring¦nullfalsenonenone
timestampstring(date-time)truenonenone
countinteger¦nullfalsenonenone
durationintegerfalsenonenone
project_idinteger¦nullfalsenonenone
task_idinteger¦nullfalsenonenone
job_idinteger¦nullfalsenonenone
user_idinteger¦nullfalsenonenone
user_namestring¦nullfalsenonenone
user_emailstring¦nullfalsenonenone
org_idinteger¦nullfalsenonenone
org_slugstring¦nullfalsenonenone
payloadstring¦nullfalsenonenone

CommentWriteRequest




{
  "issue": 0,
  "message": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
issueintegertruenonenone
messagestringfalsenonenone

PatchedDataMetaWriteRequest




{
  "deleted_frames": [
    0
  ]
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
deleted_frames[integer]falsenonenone

AnnotationGuideWriteRequest




{
  "task_id": 0,
  "project_id": 0,
  "markdown": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
task_idinteger¦nullfalsenonenone
project_idinteger¦nullfalsenonenone
markdownstringfalsenonenone

LoginSerializerExRequest




{
  "username": "string",
  "email": "user@example.com",
  "password": "string"
}

Attribute

NameTypeRequiredRestrictionsTitleDescription
usernamestringfalsenonenone
emailstring(email)falsenonenone
passwordstringtruenonenone
  • 15
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值