{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aitopia-ai/json-schema/aitopia-ai-cancel-schema.json",
  "title": "Cancel",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aitopia-ai-openapi.json#/components/schemas/Cancel",
  "type": "object",
  "required": [
    "request_id",
    "cancel"
  ],
  "properties": {
    "request_id": {
      "type": "string"
    },
    "cancel": {
      "type": "string",
      "enum": [
        "cancelled",
        "cancellation_requested",
        "cannot_cancel",
        "already_terminal"
      ]
    },
    "will_be_charged": {
      "type": "boolean"
    }
  }
}