{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentstack-tech/json-schema/agentstack-tech-agent-patch-body-schema.json",
  "title": "AgentPatchBody",
  "description": "Leaf edits on agent_spec (MCP parity: agents.update path_updates / section).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentstack-tech-agents-fleet-api-openapi.yml#/components/schemas/AgentPatchBody",
  "properties": {
    "path_updates": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Path Updates",
      "description": "Dotted paths; string leaves accept {replacements|unified_diff}"
    },
    "section": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Section"
    },
    "section_value": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "title": "Section Value"
    },
    "write_mode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Write Mode",
      "default": "merge"
    }
  },
  "type": "object"
}