---
title: "Update agent"
method: PATCH
path: "/api/agents/{id}"
tags: ["Platform API"]
---

# Update agent

`PATCH /api/agents/{id}`

Patch one configured Outlit agent. Only provided fields are changed.

## Path parameters

- `id` string, required

## Request body

- UpdateAgentRequest
  - `displayName` string
  - `instructions` string
  - `actionKeys` string[]

## Response `200`

Agent was updated.

- UpdateAgentCommandSuccess
  - `ok` true, required
  - `commandId` 'agent.update', required
  - `commandVersion` 1, required
  - `correlationId` string, required
  - `result` object, required
    - `operationId` 'agent.update', required
    - `status` 'completed', required
    - `resources` CommandResource[], required
      - `type` string, required
      - `id` string, required
    - `data` object, required
      - `agent` AgentSummary, required
        - `id` string, required
        - `agentKey` string, required
        - `displayName` string, required
        - `status` 'ENABLED' | 'DISABLED', required
        - `templateVersion` string, required
        - `actionKeys` string[], required
        - `schedule` AgentScheduleSummary, required
          - `enabled` boolean, required
          - `nextRunAt` string, date-time, nullable, required
          - `lastRunAt` string, date-time, nullable, required
          - `lastSuccessfulRunAt` string, date-time, nullable, required
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
    - `warnings` string[], required
    - `auditId` string

## Other responses

- `400` — The request body failed command validation.
- `401` — Invalid or missing API key.
- `403` — The API key is valid but does not have the required agent write scope.
- `404` — No resource was found for the authenticated organization and requested id.
- `409` — The requested change conflicts with the current platform state.
- `500` — Internal server error.
- `503` — The platform could not complete the command.

## Changes

- **2026-06-29** `012f9a36abf9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/outlitai/apis/outlit-api/changes/api/agents/:id/patch.md)

---

[API](https://skmtc.dev/outlitai/apis/outlit-api.md) · [All operations](https://skmtc.dev/outlitai/apis/outlit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outlitai/outlit-api/revisions/147173adbb3f/schema)
