{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getoya-ai/json-schema/getoya-ai-post-api-templates-request-schema.json",
  "title": "PostApiTemplatesRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/getoya-ai-openapi-generated.yml#/components/schemas/PostApiTemplatesRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Slugified into the template ID. Required only when neither --from-template nor --from-agent supplies one."
    },
    "display_name": {
      "type": "string",
      "description": "Pretty name shown in the gallery. Defaults to --name."
    },
    "description": {
      "type": "string",
      "description": "Gallery metadata description."
    },
    "category": {
      "type": "string",
      "description": "Gallery metadata category."
    },
    "icon": {
      "type": "string",
      "description": "Gallery metadata icon."
    },
    "color": {
      "type": "string",
      "description": "Gallery metadata color."
    },
    "from_template": {
      "type": "string",
      "description": "Load a YAML template (path, http(s) URL, or - for stdin)."
    },
    "from_agent": {
      "type": "string",
      "description": "Copy soul + skill_ids + routines from an existing OAgent."
    },
    "include_kb": {
      "type": "string",
      "description": "With --from-agent, also embed the OAgent's KB entries."
    },
    "restrict_domain": {
      "type": "string",
      "description": "Limit who can see the template (repeatable)."
    }
  }
}