---
title: "Set Quality"
method: PUT
path: "/optimisation/quality"
tags: ["optimisation"]
---

# Set Quality

`PUT /optimisation/quality`

## 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/quality`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Request body

- QualityIn: The share of the incumbent's quality a cheaper candidate must keep, for the workspace (no `task_id`: its default) or one task in it; null clears it.
  - `workspace_id` string, uuid, required
  - `task_id` string, uuid, nullable
  - `keep` union, required
    - number
    - string

## Response `200`

Successful Response

- QualitySetting: The setting in force at a scope (`source`: its own row, the workspace's or the 100% default) and who set that row, when.
  - `workspace_id` string, uuid, required
  - `task_id` string, uuid, nullable, required
  - `keep` number, required
  - `source` 'task' | 'workspace' | 'default', required
  - `set_by` string, nullable, required
  - `set_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)
