Toloka documentation

AppItem | Source code

    batch_id: Optional[str] = None,
    input_data: Optional[Dict[str, Any]] = None,
    id: Optional[str] = None,
    app_project_id: Optional[str] = None,
    created: Optional[datetime] = None,
    updated: Optional[datetime] = None,
    status: Union[Status, str, None] = None,
    output_data: Optional[Dict[str, Any]] = None,
    errors: Optional[List[_AppError]] = None,
    created_at: Optional[datetime] = None,
    started_at: Optional[datetime] = None,
    finished_at: Optional[datetime] = None

A work item with data. It's uploaded into the batch with other items to be collectively sent for labeling.

In a TSV file with tasks, each line is a work item.

Parameters Description

Parameters Type Description
batch_id Optional[str]

ID of the batch that includes the item.

input_data Optional[Dict[str, Any]]

The item data following the App schema.

id Optional[str]

Item ID.

app_project_id Optional[str]

ID of the app project that includes the batch with this item.

created Optional[datetime]

updated Optional[datetime]

status Optional[Status]

Processing status. If the item has the NEW status, it can be edited. In other statuses, the item is immutable. Allowed values:

  • NEW - new;
  • PROCESSING - being processed;
  • COMPLETED - processing complete;
  • ERROR - error during processing;
  • CANCELLED - processing canceled;
  • ARCHIVE - item has been archived;
  • NO_MONEY - not enough money for processing.

output_data Optional[Dict[str, Any]]

Processing result.

errors Optional[List[_AppError]]

created_at Optional[datetime]

Date and time when the item was created.

started_at Optional[datetime]

Date and time when the item processing started.

finished_at Optional[datetime]

Date and time when the item processing was completed.