Edit a task

Attention

The toloka.yandex.com domain will be disabled starting April 1, 2023. Please use the toloka.dev domain for API requests.

Changes the task overlap.

You can:

  • Set a numeric value or an infinite overlap to assign a task to all Tolokers (for example, for training tasks).

  • Add preliminary responses or change their values if they were set.

    Preliminary responses are used to calculate  response confidence when dynamic overlap (incremental relabeling, IRL) is enabled.

  • Make control and training tasks from regular ones or edit responses and hints for existing tasks.

Request

Production version
Sandbox
PATCH https://toloka.dev/api/v1/tasks/<task_id>
Authorization: OAuth <OAuth token>
Content-Type: application/JSON

Headers

TitleOverview
AuthorizationA token for account authorization. Add OAuth as a prefix.
Content-TypeSpecifies the data format in the request body.

Path parameters

ParameterOverview
task_idTask ID.

Request body

Numeric overlap value

{
"overlap": <new overlap value>,
"infinite_overlap": false
}

Infinite overlap

{
"overlap": null,
"infinite_overlap": true
}

Preliminary responses

{
"baseline_solutions":[
{
"output_values":{<output data values>},
"confidence_weight":<from 0 to 1>
}
]
}

Responses and hints for control tasks and training tasks

{
"known_solutions":[
{
"output_values":{<output data values>},
"correctness_weight":<from 0 to 1>
}
],
"message_on_unknown_solution": <message string>
}

Response

Contains task data in JSON format.

Contact support
Toloka API
OverviewAccessing the APIRate limiting
Quick start
Reference
Project
Pools
Training
Subscriptions to events
Toloker selection
Ways to upload tasks
Tasks
Task suites
Tracking operations
Getting responses
Checking completed tasks
Rewards
Messages for Tolokers
Various parameters
Libraries