К содержимому

Schedule ​

Тип: object additionalProperties: false

ПолеОбязательноеТипОписание и ограничения
can_editДаbooleanМожет ли вызывающий изменить текущее задание. Для удалённых заданий false. Вычисляется по текущему владельцу, включая повтор идемпотентного создания. Активное выполнение может запрещать сброс сессии.
profileДаstringСохранённое имя профиля Orpheus. minLength: 1
templateДаstringСохранённое имя шаблона Orpheus. minLength: 1
urlДаstring / nullАбсолютная ссылка на карточку Space Web из ORPHEUS_PUBLIC_URL. Если адрес не настроен — null. Вычисляется при формировании ответа. format: "uri"
nameДаstringminLength: 1
maxLength: 200
promptДаstringminLength: 1
cronДаstringminLength: 1
timezoneДаstringminLength: 1
statusДаStatus
modelДаstring / nullminLength: 1
session_modeДаSessionMode
owner_emailДаstring / nullminLength: 1
servicesДаServiceCodes
idДаstringformat: "uuid"
created_atДаstringformat: "date-time"
updated_atДаstringformat: "date-time"
next_run_atДаstring / nullformat: "date-time"
deleted_atДаstring / nullformat: "date-time"
last_occurrenceДаNullableOccurrence

JSON Schema ​

json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "url",
    "can_edit",
    "name",
    "prompt",
    "cron",
    "timezone",
    "status",
    "model",
    "profile",
    "template",
    "session_mode",
    "owner_email",
    "services",
    "created_at",
    "updated_at",
    "next_run_at",
    "deleted_at",
    "last_occurrence"
  ],
  "properties": {
    "can_edit": {
      "type": "boolean",
      "description": "Whether this caller may modify the current schedule. False for deleted schedules. Computed from current ownership even on an idempotent creation replay; busy state can still prevent session reset."
    },
    "profile": {
      "type": "string",
      "minLength": 1,
      "description": "Stored Orpheus profile name."
    },
    "template": {
      "type": "string",
      "minLength": 1,
      "description": "Stored Orpheus template name."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "nullable": true,
      "description": "Absolute Space Web card URL from ORPHEUS_PUBLIC_URL, or null when not configured. Computed at response time."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "prompt": {
      "type": "string",
      "minLength": 1
    },
    "cron": {
      "type": "string",
      "minLength": 1
    },
    "timezone": {
      "type": "string",
      "minLength": 1
    },
    "status": {
      "$ref": "#/components/schemas/Status"
    },
    "model": {
      "type": "string",
      "nullable": true,
      "minLength": 1
    },
    "session_mode": {
      "$ref": "#/components/schemas/SessionMode"
    },
    "owner_email": {
      "type": "string",
      "nullable": true,
      "minLength": 1
    },
    "services": {
      "$ref": "#/components/schemas/ServiceCodes"
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "next_run_at": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "deleted_at": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    },
    "last_occurrence": {
      "$ref": "#/components/schemas/NullableOccurrence"
    }
  }
}

Все схемы · HTTP API