{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roark/json-schema/roark-write-managed-config-request-schema.json",
  "title": "WriteManagedConfigRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roark-agent-config-api-openapi.yml#/components/schemas/WriteManagedConfigRequest",
  "type": "object",
  "properties": {
    "channel": {
      "type": "string",
      "enum": [
        "production",
        "staging"
      ],
      "description": "Which channel to write."
    },
    "document": {
      "type": "object",
      "additionalProperties": {},
      "description": "The full config JSON for the new revision."
    },
    "summary": {
      "type": "string",
      "maxLength": 500,
      "description": "One-line story of the change."
    },
    "agentId": {
      "type": "string",
      "format": "uuid",
      "description": "Link this config to a Roark agent (the one your calls report). Required before Autoimprove can run on it: the link is how a fix finds the config channel."
    }
  },
  "required": [
    "channel",
    "document"
  ]
}