---
title: "Set Mandate"
method: PUT
path: "/optimisation/tasks/{task_id}/mandate"
tags: ["optimisation"]
---

# Set Mandate

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

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

Set the task's mandate for OS3's optimizer agent in the workspace: an owner or admin. It
applies from the task's next optimisation cycle.

## Path parameters

- `task_id` string, uuid, required

## Request body

- MandateIn
  - `objective` 'cheaper_same_quality' | 'improve_quality'
  - `h100_hours` union
    - number
    - string
  - `api_usd` union
    - number
    - string
  - `sandbox_cpu_hours` union
    - number
    - string
  - `sandbox_gib_hours` union
    - number
    - string
  - `max_configurations` integer
  - `workspace_id` string, uuid, required

## Response `200`

Successful Response

- TaskMandate: A task's mandate for OS3's optimizer agent in a workspace. `version`: null until it is first set (these are then the defaults). `claim`: what a released candidate may be called, `same_quality` (cheaper at the same verified quality), `economy` (cheaper, keeping at least `keep` of the current model's quality: the task's quality setting below 100%) or `improvement`.
  - `objective` 'cheaper_same_quality' | 'improve_quality'
  - `h100_hours` string
  - `api_usd` string
  - `sandbox_cpu_hours` string
  - `sandbox_gib_hours` string
  - `max_configurations` integer
  - `workspace_id` string, uuid, required
  - `task_id` string, uuid, required
  - `version` integer, nullable, required
  - `claim` string, required
  - `keep` number, nullable
  - `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)
