{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/acruxcore/main/json-schema/acruxcore-post-api-v1-prompts-import-request-schema.json",
  "title": "PostApiV1PromptsImportRequest",
  "x-generated": "2026-10-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/acruxcore-openapi-generated.yml#/components/schemas/PostApiV1PromptsImportRequest",
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "integer",
      "description": "Must be 1."
    },
    "exportedAt": {
      "type": "string",
      "description": "ISO‑8601 timestamp of the export."
    },
    "prompt": {
      "type": "object",
      "description": "Prompt metadata."
    },
    "prompt.name": {
      "type": "string",
      "description": "Name of the prompt."
    },
    "prompt.description": {
      "type": "string",
      "description": "Optional description."
    },
    "version": {
      "type": "object",
      "description": "Version data."
    },
    "version.versionNumber": {
      "type": "integer",
      "description": "Version number (defaults to 1)."
    },
    "version.messages": {
      "type": "array",
      "description": "Array of message objects."
    },
    "version.messages[].role": {
      "type": "string",
      "description": "Message role (e.g., system)."
    },
    "version.messages[].content": {
      "type": "string",
      "description": "Message content with templating."
    },
    "version.variables": {
      "type": "array",
      "description": "List of variable names (ignored on import)."
    },
    "version.createdAt": {
      "type": "string",
      "description": "ISO‑8601 timestamp of version creation."
    }
  },
  "required": [
    "schemaVersion",
    "prompt",
    "prompt.name",
    "version",
    "version.messages",
    "version.messages[].role",
    "version.messages[].content"
  ]
}