---
title: "Edit the agent's mission, instructions and business context"
method: PATCH
path: "/agents/{id}/instructions"
tags: ["Agents"]
---

# Edit the agent's mission, instructions and business context

`PATCH /agents/{id}/instructions`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/agents/{id}/instructions`
- Auth: HTTP bearer

Owner of the agent, or an admin of the owner's company. A plain teammate (who can still view and chat with the agent) gets 404. Each field is optional: absent = unchanged, `null` or blank = cleared, otherwise trimmed (≤ 20 000 characters). At least one field is required. Nothing is pushed: the agent re-reads its profile every turn.

## Path parameters

- `id` string, required

## Request body

- object
  - `mission` string, nullable
  - `instructions` string, nullable
  - `businessContext` string, nullable

## Response `200`

- object
  - `mission` string, nullable
  - `instructions` string, nullable
  - `businessContext` string, nullable

## Other responses

- `400`: invalid body / <field> must be a string or null / <field> must be at most 20000 characters / at least one field is required
- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `404`: Unknown agent, or the caller is neither its owner nor an admin of the owner's company.

---

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