---
title: "Switch Back"
method: POST
path: "/tasks/{task_id}/parts/switch-back"
tags: ["tasks"]
---

# Switch Back

`POST /tasks/{task_id}/parts/switch-back`

## Request

- Base URL: `https://api.os3robotics.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.os3robotics.com/tasks/{task_id}/parts/switch-back`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Moves one part of the task back to the current model in the workspace: the specialist
stops answering its requests within a minute. Owners and admins.

## Path parameters

- `task_id` string, uuid, required

## Request body

- SwitchBackIn
  - `workspace_id` string, uuid, required
  - `part` PartOf, required: A part of a task: its API path, its place in the conversation and the model asked for.
    - `path` string, required
    - `turn` 'first' | 'tool_result' | 'user', required
    - `model` string, required

## Response `200`

Successful Response

- TaskPart[]
  - `part` PartOf, required: A part of a task: its API path, its place in the conversation and the model asked for.
    - `path` string, required
    - `turn` 'first' | 'tool_result' | 'user', required
    - `model` string, required
  - `state` 'released' | 'held' | 'switched_back', required
  - `verdict` 'pass' | 'fail' | 'insufficient_trials', nullable, required
  - `n` integer, nullable, required
  - `groups` integer, nullable, required
  - `win_rate_point` number, nullable, required
  - `win_rate_ci_lower` number, nullable, required
  - `win_rate_ci_upper` number, nullable, required
  - `switched_back_at` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/os3robotics/apis/os3-api.md) - [All operations](https://skmtc.dev/os3robotics/apis/os3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/os3robotics/apis/os3-api/revisions/af32cd4f14bb?raw)
