toloka.client.TolokaClient.create_app_batch
| Source code
Creates a batch with task items in an App project in Toloka.
Parameters | Type | Description |
---|---|---|
app_project_id | str | The ID of the project. |
name | Optional[str] | The batch name. |
items | Optional[List[Dict[str, Any]]] | A list with task items. The items must follow the solution schema described in the |
Returns:
Created batch with updated parameters.
Return type:
Examples:
The following example is suitable for a project
that requires query
and website_url
keys to be present in input data.
new_items = [ {'id':'30', 'query':'toloka kit', 'website_url':'https://toloka.ai/docs/toloka-kit'}, {'id':'31', 'query':'crowd kit', 'website_url':'https://toloka.ai/docs/crowd-kit'}]toloka_client.create_app_batch( app_project_id='Q2d15QBjpwWuDz8Z321g', items=new_items)
Last updated: August 28, 2023