toloka.client.TolokaClient.create_app_item
| Source code
Creates an App task item in Toloka.
Parameters | Type | Description |
---|---|---|
app_project_id | str | The ID of the App project to create the item in. |
id | - | The ID of the item. |
app_project_id | str | The ID of the project that contains the item. |
batch_id | Optional[str] | The ID of the batch that contains the item. |
input_data | Optional[Dict[str, Any]] | Input data. It must follow the solution schema described in |
status | - | The item status:
|
output_data | - | Annotated data. |
errors | - | Errors occurred during annotation. |
created_at | - | The date and time when the item was created. |
started_at | - | The date and time when the item processing started. |
finished_at | - | The date and time when the item processing was completed. |
Returns:
Created App task item 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_item = { 'batch_id' : '4Va2BBWKL88S4QyAgVje', 'input_data' : { 'id':'40', 'query':'toloka kit', 'website_url':'https://toloka.ai/docs/toloka-kit' }}new_item = toloka_client.create_app_item( app_project_id='Q2d15QBjpwWuDz8Z321g', app_item=new_item)print(new_item.created_at)
Last updated: August 28, 2023