---
title: "Disable agent"
method: POST
path: "/api/agents/{id}/disable"
tags: ["Platform API"]
---

# Disable agent

`POST /api/agents/{id}/disable`

Disable one configured Outlit agent by id. Disabled agents will not run from schedules or automations.

## Path parameters

- `id` string, required

## Response `200`

Disable agent completed.

- DisableAgentCommandSuccess
  - `ok` true, required
  - `commandId` 'agent.disable', required
  - `commandVersion` 1, required
  - `correlationId` string, required
  - `result` object, required
    - `operationId` 'agent.disable', 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

- `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 lifecycle change conflicts with the current platform state.
- `500` — Internal server error.
- `503` — The platform could not complete the command.

## Changes

- **2026-06-29** `636d3bf760af` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/outlitai/apis/outlit-api/changes/api/agents/:id/disable/post.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)
