Skip to main content

ConsensusAnnotationStage Objects

stage_type

The Annotate stage in a Consensus Project.

get_tasks

Returns the tasks in this Consensus Annotate stage that match the given filters. All filters are optional. If you pass several, only tasks that match all of them are returned. Arguments:
  • assignee - Only return tasks assigned to this user, or to any of these users. Pass user emails.
  • data_hash - Only return tasks for this data unit, or for any of these data units.
  • dataset_hash - Only return tasks for data units in this dataset, or in any of these datasets.
  • data_title - Only return tasks whose data unit title contains this text.
Returns:
  • Iterable[ConsensusAnnotationTask] - The matching tasks. Tasks are fetched page by page as you iterate. Each task’s subtasks are the AnnotationTask instances of its annotators.

ConsensusAnnotationTask Objects

Represents tasks in the Annotate stage of a Consensus Project. Attributes
  • data_hash (UUID): Unique ID for the data unit.
  • data_title (str): Name of the data unit.
  • subtasks (List[AnnotationTask]): List of tasks from individual annotators in a Consensus Project.
Allowed actions
  • move: Moves the consensus annotation task to another stage in the workflow.

move

Moves the Consensus Annotate task directly to another stage in the Workflow. The task skips any stages in between. Webhooks don’t fire for moved tasks, and labels are approved automatically when a task is moved to a Complete stage. Arguments:
  • destination_stage_uuid - The UUID of the stage to move the task to.
  • bundle - If not provided, the action is performed immediately. If provided, the action is deferred and performed together with the other operations in the bundle.