---
title: "Set Task Model"
method: PUT
path: "/optimisation/tasks/{task_id}/models"
tags: ["optimisation"]
---

# Set Task Model

`PUT /optimisation/tasks/{task_id}/models`

## 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/optimisation/tasks/{task_id}/models`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Choose the model the task's specialist trains on in the workspace, one of its choices, or
go back to OS3's default (null). Owners and admins.

## Path parameters

- `task_id` string, uuid, required

## Request body

- TaskModelIn: The model the task's specialist trains on in the workspace, one of its choices; null goes back to OS3's default.
  - `workspace_id` string, uuid, required
  - `base_model` string, nullable, required

## Response `200`

Successful Response

- TaskModel
  - `workspace_id` string, uuid, required
  - `base_model` string, nullable, required
  - `task_id` string, uuid, 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)
