Skip to main content

tasks

POST /tasks.add_or_update_artifacts

Description

Update existing artifacts (search by key/mode) and add new ones

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
artifacts
required
Artifacts to add or update< tasks.artifact > array
force
optional
If set to True then both new and running task artifacts can be edited.
Otherwise only the new task ones. Default is False
boolean
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
Indicates if the task was updated successfullyinteger

POST /tasks.add_or_update_model

Description

Add or update task model

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
iteration
optional
Iteration (used to update task statistics)integer
model
required
The model IDstring
name
required
The task model namestring
task
required
ID of the taskstring
type
required
The task model typetasks.model_type_enum

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.archive

Description

Archive tasks. If a task is queued it will first be dequeued and then archived.

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
tasks
required
List of task ids< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
archived
optional
Indicates number of archived tasksinteger

POST /tasks.archive_many

Description

Archive tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
ids
required
IDs of the tasks to archive< string > array
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameSchema
failed
optional
< failed > array
succeeded
optional
< succeeded > array

failed

NameDescriptionSchema
error
optional
Error infoerror
id
optional
ID of the failed entitystring

error

NameSchema
codes
optional
< integer > array
data
optional
object
msg
optional
string

succeeded

NameDescriptionSchema
archived
optional
Indicates whether the task was archivedboolean
id
optional
ID of the succeeded entitystring

POST /tasks.clone

Description

Clone an existing task

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
execution_overrides
optional
The execution params for the cloned task. The params not specified are taken
from the original task
tasks.execution
new_project_name
optional
Clone task to a new project by this name (only if new_task_project is not
provided). If a project by this name already exists, task will be cloned to
existing project.
string
new_task_comment
optional
The comment of the cloned task. If not provided then taken from the original
task
string
new_task_configuration
optional
The configuration for the new task. If not provided then taken from the
original task
< string, tasks.configuration_item > map
new_task_container
optional
The docker container properties for the new task. If not provided then taken
from the original task
< string, string > map
new_task_hyperparams
optional
The hyper params for the new task. If not provided then taken from the original
task
< string, tasks.section_params > map
new_task_input_models
optional
The list of input models for the cloned task. If not specifed then copied from
the original task
< tasks.task_model_item > array
new_task_name
optional
The name of the cloned task. If not provided then taken from the original taskstring
new_task_parent
optional
The parent of the cloned task. If not provided then taken from the original
task
string
new_task_project
optional
The project of the cloned task. If not provided then taken from the original
task
string
new_task_system_tags
optional
The system tags of the cloned task. If not provided then empty< string > array
new_task_tags
optional
The user-defined tags of the cloned task. If not provided then taken from the
original task
< string > array
task
required
ID of the taskstring
validate_references
optional
If set to 'false' then the task fields that are copied from the original task
are not validated. The default is false.
boolean

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
id
optional
ID of the new taskstring
new_project
optional
In case the new_project_name was specified returns the target project detailsnew_project

new_project

NameDescriptionSchema
id
optional
The ID of the target projectstring
name
optional
The name of the target projectstring

POST /tasks.close

Description

Indicates that task is closed

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
Allows forcing state change even if transition is not supported
Default : false
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.completed

Description

Signal a task has completed

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If not true, call fails if the task status is not in_progress/stopped
Default : false
boolean
publish
optional
If set and the task is completed successfully then it is published
Default : false
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
published
optional
Number of tasks published (0 or 1)integer
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.create

Description

Create a new task

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
comment
optional
Free text commentstring
configuration
optional
Task configuration params< string, tasks.configuration_item > map
container
optional
Docker container parameters< string, string > map
execution
optional
Task execution paramstasks.execution
hyperparams
optional
Task hyper params per section< string, tasks.section_params > map
models
optional
Task modelstasks.task_models
name
required
Task name. Unique within the company.string
output_dest
optional
Output storage id Must be a reference to an existing storage.string
parent
optional
Parent task id Must be a completed task.string
project
optional
Project ID of the project to which this task is assigned Must exist[ab]string
script
optional
Script infotasks.script
system_tags
optional
System tags list. This field is reserved for system use, please don't use it.< string > array
tags
optional
User-defined tags list< string > array
type
required
Type of tasktasks.task_type_enum

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
id
optional
ID of the taskstring

POST /tasks.delete

Description

Delete a task along with any information stored for it (statistics, frame
updates etc.) Unless Force flag is provided, operation will fail if task has
objects associated with it - i.e. children tasks and projects. Models that
refer to the deleted task will be updated with a task ID indicating a deleted
task.

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
delete_external_artifacts
optional
If set to 'true' then BE will try to delete the extenal artifacts associated
with the task from the fileserver (if configured to do so)
Default : true
boolean
delete_output_models
optional
If set to 'true' then delete output models of this task that are not referenced
by other tasks. Default value is 'true'
boolean
force
optional
If not true, call fails if the task status is 'in_progress'
Default : false
boolean
move_to_trash
optional
Move task to trash instead of deleting it. For internal use only, tasks in the
trash are not visible from the API and cannot be restored!
Default : false
boolean
return_file_urls
optional
If set to 'true' then return the urls of the files that were uploaded by this
task. Default value is 'false'
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
deleted
optional
Indicates whether the task was deletedboolean
events
optional
Response from events.delete_for_taskobject
updated_children
optional
Number of child tasks whose parent property was updatedinteger
updated_models
optional
Number of models whose task property was updatedinteger
urls
optional
The urls of the files that were uploaded by this task. Returned if the
'return_file_urls' was set to 'true'
tasks.task_urls

POST /tasks.delete_artifacts

Description

Delete existing artifacts (search by key/mode)

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
artifacts
required
Artifacts to delete< tasks.artifact_id > array
force
optional
If set to True then both new and running task artifacts can be deleted.
Otherwise only the new task ones. Default is False
boolean
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
deleted
optional
Indicates if the task was updated successfullyinteger

POST /tasks.delete_configuration

Description

Delete task configuration items

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
configuration
required
List of configuration itemss to delete< string > array
force
optional
If set to True then both new and running task configuration can be deleted.
Otherwise only the new task ones. Default is False
boolean
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
deleted
optional
Indicates if the task was updated successfullyinteger

POST /tasks.delete_hyper_params

Description

Delete task hyper parameters

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If set to True then both new and running task hyper params can be deleted.
Otherwise only the new task ones. Default is False
boolean
hyperparams
required
List of hyper parameters to delete. In case a parameter with an empty name is
passed all the section will be deleted
< tasks.param_key > array
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
deleted
optional
Indicates if the task was updated successfullyinteger

POST /tasks.delete_many

Description

Delete tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
delete_external_artifacts
optional
If set to 'true' then BE will try to delete the extenal artifacts associated
with the tasks from the fileserver (if configured to do so)
Default : true
boolean
delete_output_models
optional
If set to 'true' then delete output models of the tasks that are not referenced
by other tasks. Default value is 'true'
boolean
force
optional
If not true, call fails if the task status is 'in_progress'
Default : false
boolean
ids
required
IDs of the tasks to delete< string > array
move_to_trash
optional
Move task to trash instead of deleting it. For internal use only, tasks in the
trash are not visible from the API and cannot be restored!
Default : false
boolean
return_file_urls
optional
If set to 'true' then return the urls of the files that were uploaded by the
tasks. Default value is 'false'
boolean

Responses

HTTP CodeSchema
200Response 200

Response 200

NameSchema
failed
optional
< failed > array
succeeded
optional
< succeeded > array

failed

NameDescriptionSchema
error
optional
Error infoerror
id
optional
ID of the failed entitystring

error

NameSchema
codes
optional
< integer > array
data
optional
object
msg
optional
string

succeeded

NameDescriptionSchema
deleted
optional
Indicates whether the task was deletedboolean
deleted_models
optional
Number of deleted output modelsinteger
id
optional
ID of the succeeded entitystring
updated_children
optional
Number of child tasks whose parent property was updatedinteger
updated_models
optional
Number of models whose task property was updatedinteger
urls
optional
The urls of the files that were uploaded by the task. Returned if the 'return_file_urls' was set to 'true'tasks.task_urls

POST /tasks.delete_models

Description

Delete models from task

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
models
required
The list of models to delete< models > array
task
required
ID of the taskstring

models

NameDescriptionSchema
name
required
The task model namestring
type
required
The task model typetasks.model_type_enum

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.dequeue

Description

Remove a task from its queue. Fails if task status is not queued.

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
new_status
optional
The new status to assign to the task after the dequeue instead of the default
one
string
remove_from_all_queues
optional
If set to 'true' then the task is searched and removed from all the queues.
Otherwise only from the queue stored in the task execution parameters
Default : false
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
dequeued
optional
Number of tasks dequeued (0 or 1)integer
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.dequeue_many

Description

Dequeue tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
ids
required
IDs of the tasks to dequeue< string > array
new_status
optional
The new status to assign to the task after the dequeue instead of the default
one
string
remove_from_all_queues
optional
If set to 'true' then the tasks are searched and removed from all the queues.
Otherwise only from the queue stored in the task execution parameters
Default : false
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameSchema
failed
optional
< failed > array
succeeded
optional
< succeeded > array

failed

NameDescriptionSchema
error
optional
Error infoerror
id
optional
ID of the failed entitystring

error

NameSchema
codes
optional
< integer > array
data
optional
object
msg
optional
string

succeeded

NameDescriptionSchema
dequeued
optional
Indicates whether the task was dequeuedboolean
fields
optional
Updated fields names and valuesobject
id
optional
ID of the succeeded entitystring
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.edit

Description

Edit task's details.

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
comment
optional
Free text commentstring
configuration
optional
Task configuration params< string, tasks.configuration_item > map
container
optional
Docker container parameters< string, string > map
execution
optional
Task execution paramstasks.execution
force
optional
If not true, call fails if the task status is not 'created'
Default : false
boolean
hyperparams
optional
Task hyper params per section< string, tasks.section_params > map
models
optional
Task modelstasks.task_models
name
optional
Task name Unique within the company.string
output_dest
optional
Output storage id Must be a reference to an existing storage.string
parent
optional
Parent task id Must be a completed task.string
project
optional
Project ID of the project to which this task is assigned Must exist[ab]string
runtime
optional
Task runtime mappingobject
script
optional
Script infotasks.script
system_tags
optional
System tags list. This field is reserved for system use, please don't use it.< string > array
tags
optional
User-defined tags list< string > array
task
required
ID of the taskstring
type
optional
Type of tasktasks.task_type_enum

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.edit_configuration

Description

Add or update task configuration

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
configuration
required
Task configuration items. The new ones will be added and the already existing
ones will be updated
< tasks.configuration_item > array
force
optional
If set to True then both new and running task configuration can be edited.
Otherwise only the new task ones. Default is False
boolean
replace_configuration
optional
If set then the all the configuration items will be replaced with the provided
ones. Otherwise only the provided configuration items will be updated or added
boolean
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
Indicates if the task was updated successfullyinteger

POST /tasks.edit_hyper_params

Description

Add or update task hyper parameters

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If set to True then both new and running task hyper params can be edited.
Otherwise only the new task ones. Default is False
boolean
hyperparams
required
Task hyper parameters. The new ones will be added and the already existing ones
will be updated
< tasks.params_item > array
replace_hyperparams
optional
Can be set to one of the following: 'all' - all the hyper parameters will be
replaced with the provided ones 'section' - the sections that present in the
new parameters will be replaced with the provided parameters 'none' (the
default value) - only the specific parameters will be updated or added
tasks.replace_hyperparams_enum
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
Indicates if the task was updated successfullyinteger

POST /tasks.enqueue

Description

Adds a task into a queue.
Fails if task state is not 'created'.
Fails if the following parameters in the task were not filled:

  • execution.script.repository
  • execution.script.entrypoint

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
queue
optional
Queue id. If not provided and no queue name is passed then task is added to the
default queue.
string
queue_name
optional
The name of the queue. If the queue does not exist then it is auto-created.
Cannot be used together with the queue id
string
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring
verify_watched_queue
optional
If passed then check wheter there are any workers watiching the queue
Default : false
boolean

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
queue_watched
optional
Returns Trueif there are workers or autscalers working with the queueboolean
queued
optional
Number of tasks queued (0 or 1)integer
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.enqueue_many

Description

Enqueue tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
ids
required
IDs of the tasks to enqueue< string > array
queue
optional
Queue id. If not provided and no queue name is passed then tasks are added to
the default queue.
string
queue_name
optional
The name of the queue. If the queue does not exist then it is auto-created.
Cannot be used together with the queue id
string
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
validate_tasks
optional
If set then tasks are validated before enqueue
Default : false
boolean
verify_watched_queue
optional
If passed then check wheter there are any workers watiching the queue
Default : false
boolean

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
failed
optional
< failed > array
queue_watched
optional
Returns Trueif there are workers or autscalers working with the queueboolean
succeeded
optional
< succeeded > array

failed

NameDescriptionSchema
error
optional
Error infoerror
id
optional
ID of the failed entitystring

error

NameSchema
codes
optional
< integer > array
data
optional
object
msg
optional
string

succeeded

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
id
optional
ID of the succeeded entitystring
queued
optional
Indicates whether the task was queuedboolean
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.failed

Description

Indicates that task has failed

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
Allows forcing state change even if transition is not supported
Default : false
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.get_all

Description

Get all the company's tasks and all public tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
all
optional
Multi-field pattern condition (all fields match pattern)tasks.multi_field_pattern_data
any
optional
Multi-field pattern condition (any field matches pattern)tasks.multi_field_pattern_data
id
optional
List of IDs to filter by< string > array
include_subprojects
optional
If set to 'true' and project field is set then tasks from the subprojects are
searched too
Default : false
boolean
name
optional
Get only tasks whose name matches this pattern (python regular expression
syntax)
string
only_fields
optional
List of task field names (nesting is supported using '.', e.g.
execution.model_labels). If provided, this list defines the query's projection
(only these fields will be returned for each result entry)
< string > array
order_by
optional
List of field names to order by. When search_text is used, '@text_score' can be
used as a field representing the text score of returned documents. Use '-'
prefix to specify descending order. Optional, recommended when using page. If
the first order field is a hyper parameter or metric then string values are
ordered according to numeric ordering rules where applicable
< string > array
page
optional
Page number, returns a specific page out of the resulting list of tasks
Minimum value : 0
integer
page_size
optional
Page size, specifies the number of results returned in each page (last page may
contain fewer results)
Minimum value : 1
integer
parent
optional
Parent IDstring
project
optional
List of project IDs< string > array
refresh_scroll
optional
If set then all the data received with this scroll will be requeriedboolean
scroll_id
optional
Scroll ID returned from the previos calls to get_allstring
search_hidden
optional
If set to 'true' then hidden tasks are included in the search results
Default : false
boolean
search_text
optional
Free text search querystring
size
optional
The number of tasks to retrieve
Minimum value : 1
integer
status
optional
List of task status.< tasks.task_status_enum > array
status_changed
optional
List of status changed constraint strings (utcformat, epoch) with an optional
prefix modifier (>, >=, <, <=)
< string > array
system_tags
optional
List of task system tags. Use '-' prefix to exclude system tags< string > array
tags
optional
List of task user-defined tags. Use '-' prefix to exclude tags< string > array
type
optional
List of task types. One or more of: 'import', 'annotation', 'training' or
'testing' (case insensitive)
< string > array
user
optional
List of user IDs used to filter results by the task's creating user< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
scroll_id
optional
Scroll ID that can be used with the next calls to get_all to retrieve more datastring
tasks
optional
List of tasks< tasks.task > array

POST /tasks.get_all_ex

Description

Get all the company's tasks and all public tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
all
optional
Multi-field pattern condition (all fields match pattern)tasks.multi_field_pattern_data
any
optional
Multi-field pattern condition (any field matches pattern)tasks.multi_field_pattern_data
allow_public
optional
Allow public tasks to be returned in the results
Default : true
boolean
filters
optional
< string, filters > map
id
optional
List of IDs to filter by< string > array
include_subprojects
optional
If set to 'true' and project field is set then tasks from the subprojects are
searched too
Default : false
boolean
name
optional
Get only tasks whose name matches this pattern (python regular expression
syntax)
string
only_fields
optional
List of task field names (nesting is supported using '.', e.g.
execution.model_labels). If provided, this list defines the query's projection
(only these fields will be returned for each result entry)
< string > array
order_by
optional
List of field names to order by. When search_text is used, '@text_score' can be
used as a field representing the text score of returned documents. Use '-'
prefix to specify descending order. Optional, recommended when using page. If
the first order field is a hyper parameter or metric then string values are
ordered according to numeric ordering rules where applicable
< string > array
page
optional
Page number, returns a specific page out of the resulting list of tasks
Minimum value : 0
integer
page_size
optional
Page size, specifies the number of results returned in each page (last page may
contain fewer results)
Minimum value : 1
integer
parent
optional
Parent IDstring
project
optional
List of project IDs< string > array
refresh_scroll
optional
If set then all the data received with this scroll will be requeriedboolean
scroll_id
optional
Scroll ID returned from the previos calls to get_all_exstring
search_hidden
optional
If set to 'true' then hidden tasks are included in the search results
Default : false
boolean
search_text
optional
Free text search querystring
size
optional
The number of tasks to retrieve
Minimum value : 1
integer
status
optional
List of task status.< tasks.task_status_enum > array
status_changed
optional
List of status changed constraint strings (utcformat, epoch) with an optional
prefix modifier (>, >=, <, <=)
< string > array
system_tags
optional
List of task system tags. Use '-' prefix to exclude system tags< string > array
tags
optional
List of task user-defined tags. Use '-' prefix to exclude tags< string > array
type
optional
List of task types. One or more of: 'import', 'annotation', 'training' or
'testing' (case insensitive)
< string > array
user
optional
List of user IDs used to filter results by the task's creating user< string > array

filters

NameDescriptionSchema
all
optional
All the terms in 'all' condition are combined with 'and' operationall
any
optional
All the terms in 'any' condition are combined with 'or' operationany
op
optional
The operation between 'any' and 'all' parts of the filter if both are provided
Default : "and"
enum (and, or)

all

NameSchema
exclude
optional
< string > array
include
optional
< string > array

any

NameSchema
exclude
optional
< string > array
include
optional
< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
scroll_id
optional
Scroll ID that can be used with the next calls to get_all_ex to retrieve more
data
string
tasks
optional
List of tasks< tasks.task > array

POST /tasks.get_by_id

Description

Gets task information

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
task
optional
Task infotasks.task

POST /tasks.get_by_id_ex

Description

Get all the company's tasks and all public tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
all
optional
Multi-field pattern condition (all fields match pattern)tasks.multi_field_pattern_data
any
optional
Multi-field pattern condition (any field matches pattern)tasks.multi_field_pattern_data
id
optional
List of IDs to filter by< string > array
name
optional
Get only tasks whose name matches this pattern (python regular expression
syntax)
string
only_fields
optional
List of task field names (nesting is supported using '.', e.g.
execution.model_labels). If provided, this list defines the query's projection
(only these fields will be returned for each result entry)
< string > array
order_by
optional
List of field names to order by. When search_text is used, '@text_score' can be
used as a field representing the text score of returned documents. Use '-'
prefix to specify descending order. Optional, recommended when using page. If
the first order field is a hyper parameter or metric then string values are
ordered according to numeric ordering rules where applicable
< string > array
page
optional
Page number, returns a specific page out of the resulting list of tasks
Minimum value : 0
integer
page_size
optional
Page size, specifies the number of results returned in each page (last page may
contain fewer results)
Minimum value : 1
integer
parent
optional
Parent IDstring
project
optional
List of project IDs< string > array
search_text
optional
Free text search querystring
status
optional
List of task status.< tasks.task_status_enum > array
status_changed
optional
List of status changed constraint strings (utcformat, epoch) with an optional
prefix modifier (>, >=, <, <=)
< string > array
system_tags
optional
List of task system tags. Use '-' prefix to exclude system tags< string > array
tags
optional
List of task user-defined tags. Use '-' prefix to exclude tags< string > array
type
optional
List of task types. One or more of: 'import', 'annotation', 'training' or
'testing' (case insensitive)
< string > array
user
optional
List of user IDs used to filter results by the task's creating user< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
tasks
optional
List of tasks< tasks.task > array

POST /tasks.get_configuration_names

Description

Get the list of task configuration items names

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
skip_empty
optional
If set to 'true' then the names for configurations with missing values are not
returned
Default : true
boolean
tasks
required
Task IDs< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
configurations
optional
Names of task configuration items (keyed by task ID)configurations

configurations

NameDescriptionSchema
names
optional
Configuration names< string > array
task
optional
Task IDstring

POST /tasks.get_configurations

Description

Get the list of task configurations

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
names
optional
Names of the configuration items to retreive. If not passed or empty then all
the configurations will be retreived.
< string > array
tasks
required
Task IDs< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
configurations
optional
Configurations (keyed by task ID)< configurations > array

configurations

NameDescriptionSchema
configuration
optional
Configuration list< tasks.configuration_item > array
task
optional
Task IDstring

POST /tasks.get_hyper_params

Description

Get the list of task hyper parameters

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
tasks
required
Task IDs< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
params
optional
Hyper parameters (keyed by task ID)< params > array

params

NameDescriptionSchema
hyperparams
optional
Hyper parameters< tasks.params_item > array
task
optional
Task IDstring

POST /tasks.get_types

Description

Get the list of task types used in the specified projects

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
projects
optional
The list of projects which tasks will be analyzed. If not passed or empty then
all the company and public tasks will be analyzed
< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
types
optional
Unique list of the task types used in the requested projects< string > array

POST /tasks.make_private

Description

Convert public tasks to private

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
ids
optional
Ids of the tasks to convert. Only the tasks originated by the company can be
converted
< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
Number of tasks updatedinteger

POST /tasks.make_public

Description

Convert company tasks to public

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
ids
optional
Ids of the tasks to convert< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
Number of tasks updatedinteger

POST /tasks.move

Description

Move tasks to a project

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
ids
required
Tasks to move< string > array
project
optional
Target project ID. If not provided, project_name must be provided. Use null
for the root project
string
project_name
optional
Target project name. If provided and a project with this name does not exist, a
new project will be created. If not provided, project must be provided.
string

Responses

HTTP CodeSchema
200object

POST /tasks.ping

Description

Refresh the task's last update time

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
task
required
Task IDstring

Responses

HTTP CodeSchema
200object

POST /tasks.publish

Description

Mark a task status as published.
For Annotation tasks - if any changes were committed by this task, a
new version in the dataset together with an output view are created.
For Training tasks - if a model was created, it should be set to ready.

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If not true, call fails if the task status is not 'stopped'
Default : false
boolean
publish_model
optional
Indicates that the task output model (if exists) should be published. Optional,
the default value is True.
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.publish_many

Description

Publish tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If not true, call fails if the task status is not 'stopped'
Default : false
boolean
ids
required
IDs of the tasks to publish< string > array
publish_model
optional
Indicates that the task output model (if exists) should be published. Optional,
the default value is True.
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameSchema
failed
optional
< failed > array
succeeded
optional
< succeeded > array

failed

NameDescriptionSchema
error
optional
Error infoerror
id
optional
ID of the failed entitystring

error

NameSchema
codes
optional
< integer > array
data
optional
object
msg
optional
string

succeeded

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
id
optional
ID of the succeeded entitystring
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.reset

Description

Reset a task to its initial state, along with any information stored for it
(statistics, frame updates etc.).

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
clear_all
optional
Clear script and execution sections completely
Default : false
boolean
delete_external_artifacts
optional
If set to 'true' then BE will try to delete the extenal artifacts associated
with the task from the fileserver (if configured to do so)
Default : true
boolean
delete_output_models
optional
If set to 'true' then delete output models of this task that are not referenced
by other tasks. Default value is 'true'
boolean
force
optional
If not true, call fails if the task status is 'completed'
Default : false
boolean
return_file_urls
optional
If set to 'true' then return the urls of the files that were uploaded by this
task. Default value is 'false'
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
deleted_models
optional
Number of output models deleted by the resetinteger
dequeued
optional
Response from queues.remove_taskobject
events
optional
Response from events.delete_for_taskobject
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer
urls
optional
The urls of the files that were uploaded by this task. Returned if the
'return_file_urls' was set to 'true'
tasks.task_urls

POST /tasks.reset_many

Description

Reset tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
clear_all
optional
Clear script and execution sections completely
Default : false
boolean
delete_external_artifacts
optional
If set to 'true' then BE will try to delete the extenal artifacts associated
with the tasks from the fileserver (if configured to do so)
Default : true
boolean
delete_output_models
optional
If set to 'true' then delete output models of the tasks that are not referenced
by other tasks. Default value is 'true'
boolean
force
optional
If not true, call fails if the task status is 'completed'
Default : false
boolean
ids
required
IDs of the tasks to reset< string > array
return_file_urls
optional
If set to 'true' then return the urls of the files that were uploaded by the
tasks. Default value is 'false'
boolean

Responses

HTTP CodeSchema
200Response 200

Response 200

NameSchema
failed
optional
< failed > array
succeeded
optional
< succeeded > array

failed

NameDescriptionSchema
error
optional
Error infoerror
id
optional
ID of the failed entitystring

error

NameSchema
codes
optional
< integer > array
data
optional
object
msg
optional
string

succeeded

NameDescriptionSchema
deleted_models
optional
Number of output models deleted by the resetinteger
dequeued
optional
Indicates whether the task was dequeuedboolean
fields
optional
Updated fields names and valuesobject
id
optional
ID of the succeeded entitystring
updated
optional
Number of tasks updated (0 or 1)integer
urls
optional
The urls of the files that were uploaded by the task. Returned if the 'return_file_urls' was set to 'true'tasks.task_urls

POST /tasks.set_requirements

Description

Set the script requirements for a task

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
requirements
required
A JSON object containing requirements strings by keyobject
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.started

Description

Mark a task status as in_progress. Optionally allows to set the task's
execution progress.

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If not true, call fails if the task status is not 'not_started'
Default : false
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
started
optional
Number of tasks started (0 or 1)integer
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.stop

Description

Request to stop a running task

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If not true, call fails if the task status is not 'in_progress'
Default : false
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.stop_many

Description

Request to stop running tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If not true, call fails if the task status is not 'in_progress'
Default : false
boolean
ids
required
IDs of the tasks to stop< string > array
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameSchema
failed
optional
< failed > array
succeeded
optional
< succeeded > array

failed

NameDescriptionSchema
error
optional
Error infoerror
id
optional
ID of the failed entitystring

error

NameSchema
codes
optional
< integer > array
data
optional
object
msg
optional
string

succeeded

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
id
optional
ID of the succeeded entitystring
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.stopped

Description

Signal a task has stopped

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
force
optional
If not true, call fails if the task status is not 'stopped'
Default : false
boolean
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring
task
required
Task IDstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.unarchive_many

Description

Unarchive tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
ids
required
IDs of the tasks to unarchive< string > array
status_message
optional
Extra information regarding status changestring
status_reason
optional
Reason for status changestring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameSchema
failed
optional
< failed > array
succeeded
optional
< succeeded > array

failed

NameDescriptionSchema
error
optional
Error infoerror
id
optional
ID of the failed entitystring

error

NameSchema
codes
optional
< integer > array
data
optional
object
msg
optional
string

succeeded

NameDescriptionSchema
id
optional
ID of the succeeded entitystring
unarchived
optional
Indicates whether the task was unarchivedboolean

POST /tasks.update

Description

Update task's runtime parameters

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
comment
optional
Free text commentstring
created
optional
Task creation time (UTC)string (date-time)
name
optional
Task name Unique within the company.string
output__error
optional
Free text errorstring
project
optional
Project ID of the project to which this task is assignedstring
system_tags
optional
System tags list. This field is reserved for system use, please don't use it.< string > array
tags
optional
User-defined tags list< string > array
task
required
ID of the taskstring

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
fields
optional
Updated fields names and valuesobject
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.update_batch

Description

Updates a batch of tasks. Headers Content type should be 'application/json-
lines'.

Parameters

TypeNameDescriptionSchema
Bodyrequests
required
Json encoded newline-terminated lines, each representing an event in the batch and uses the same parameters used for tasks.update< object > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
Number of tasks updated (0 or 1)integer

POST /tasks.update_tags

Description

Add or remove tags from multiple tasks

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
add_tags
optional
User tags to add< string > array
ids
optional
IDs of the tasks to update< string > array
remove_tags
optional
User tags to remove< string > array

Responses

HTTP CodeSchema
200Response 200

Response 200

NameDescriptionSchema
updated
optional
The number of updated tasksinteger

POST /tasks.validate

Description

Validate task properties (before create)

Parameters

TypeNameDescriptionSchema
Bodyrequest
required
request bodyrequest

request

NameDescriptionSchema
comment
optional
Free text commentstring
configuration
optional
Task configuration params< string, tasks.configuration_item > map
container
optional
Docker container parameters< string, string > map
execution
optional
Task execution paramstasks.execution
hyperparams
optional
Task hyper params per section< string, tasks.section_params > map
models
optional
Task modelstasks.task_models
name
required
Task name. Unique within the company.string
output_dest
optional
Output storage id Must be a reference to an existing storage.string
parent
optional
Parent task id Must be a completed task.string
project
optional
Project ID of the project to which this task is assigned Must exist[ab]string
script
optional
Script infotasks.script
system_tags
optional
System tags list. This field is reserved for system use, please don't use it.< string > array
tags
optional
User-defined tags list< string > array
type
required
Type of tasktasks.task_type_enum

Responses

HTTP CodeSchema
200object