{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-update-agent-request-schema.json",
  "title": "UpdateAgentRequest",
  "description": "Body for `PATCH /v1/agents/{id}`. Absent fields are unchanged; null\nis only meaningful for the JSON `settings` payload.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-agents-api-openapi.yml#/components/schemas/UpdateAgentRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": [
        "string",
        "null"
      ],
      "description": "New model id."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "New name."
    },
    "persona": {
      "type": [
        "string",
        "null"
      ],
      "description": "New persona."
    },
    "scopes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "New scope list (full replacement)."
    },
    "settings": {
      "description": "New settings JSONB (full replacement)."
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "description": "New lifecycle status (`draft` / `live` / `paused`)."
    },
    "tools": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "New tool allowlist (full replacement)."
    }
  }
}