MCP Site
site_event_save

Сохранить черновик события

Сохраняет описание сессии по идентификаторам сайта и филиала с проверкой ревизии.

С изменениями

Примеры промптов

Запрос в чат
Подготовь новую черновую сессию «Открытая мастерская» в выбранном филиале на согласованную дату. Проверь часовой пояс и параметры билетов.
Что проверить в ответе

Сохраняет описание сессии по идентификаторам сайта и филиала с проверкой ревизии.

Запрос в чат
Помоги подготовить вызов site_event_save для задачи «Сохранить черновик события». Разбери eventId, locationId, expectedRevision и покажи, откуда взять точные значения для выбранного объекта. Остановись на черновике запроса.
Что проверить в ответе

Сверить значения со схемой до вызова.

Запрос в чат
При выполнении «Сохранить черновик события» связь прервалась после отправки. Для site_event_save проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.
Что проверить в ответе

Сопоставить результат с исходной операцией.

Как проходит вызов
Вход: eventId, locationId, expectedRevision. Результат: данные операции.
Как уточнить расплывчатый запрос
Исправь билеты.

Выберите событие, сессию и конкретное изменение или проверку.

Подготовь новую черновую сессию «Открытая мастерская» в выбранном филиале на согласованную дату. Проверь часовой пояс и параметры билетов.

Параметры запроса
eventId
Идентификатор выбранной сессии события. строка · обязательно по схеме
locationId
Идентификатор реального филиала. строка · обязательно по схеме
requestId
Идентификатор исходного запроса. Сохраните для проверки результата. строка · обязательно по схеме
expectedRevision
Актуальная ревизия объекта перед изменением. целое число · обязательно по схеме · от 0 · до 9007199254740991
definition
объект · обязательно по схеме
status
Состояние операции или объекта. draft, published, paused, completed, canceled · обязательно по схеме
siteId
Идентификатор сайта из списка доступных сайтов. строка · обязательно по схеме
Что вернёт инструмент

Состав объекта зависит от операции. Проверьте фактический ответ и полную схему.

Полная схема MCP

Вход

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "eventId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,80}$",
      "description": "Exact event session identifier."
    },
    "locationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,80}$",
      "description": "Native establishment for this event."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable key for this operation and its unchanged arguments."
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Zero for a new draft, otherwise current revision."
    },
    "definition": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "description": "Public event title."
        },
        "studio": {
          "description": "Visual settings of the Events studio. Prices and admission always use native products and event inventory.",
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "maxLength": 40,
              "description": "Event format selected in the studio."
            },
            "subtitle": {
              "type": "string",
              "maxLength": 240,
              "description": "Short subtitle on the event card."
            },
            "city": {
              "type": "string",
              "maxLength": 200,
              "description": "City displayed in the editor."
            },
            "cover": {
              "type": "string",
              "maxLength": 1600,
              "description": "Published HTTPS cover image."
            },
            "accent": {
              "type": "string",
              "pattern": "^#[a-f0-9]{3,8}$",
              "description": "Presentation accent color."
            },
            "ticketStyle": {
              "type": "string",
              "maxLength": 40,
              "description": "Ticket presentation style."
            },
            "layout": {
              "type": "string",
              "enum": [
                "general",
                "rows",
                "tables"
              ],
              "description": "Seat plan presentation."
            },
            "rows": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "description": "Number of displayed rows."
            },
            "seatsPerRow": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "description": "Number of seats per displayed row."
            },
            "tables": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "description": "Number of displayed tables."
            },
            "seatsPerTable": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000,
              "description": "Number of seats per displayed table."
            },
            "features": {
              "type": "object",
              "propertyNames": {
                "type": "string",
                "pattern": "^[a-zA-Z]{1,32}$"
              },
              "additionalProperties": {
                "type": "boolean"
              },
              "description": "Studio feature switches."
            },
            "form": {
              "type": "object",
              "propertyNames": {
                "type": "string",
                "pattern": "^[a-zA-Z]{1,32}$"
              },
              "additionalProperties": {
                "type": "boolean"
              },
              "description": "Registration form display options."
            },
            "guestRules": {
              "type": "object",
              "propertyNames": {
                "type": "string",
                "pattern": "^[a-zA-Z]{1,40}$"
              },
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 1600
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "description": "Structured rules shown to guests."
            },
            "categories": {
              "maxItems": 32,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,80}$",
                    "description": "Studio category ID."
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "description": "Category display name."
                  },
                  "productId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,80}$",
                    "description": "Native ticket product."
                  },
                  "color": {
                    "type": "string",
                    "maxLength": 16,
                    "description": "Color shown on the plan."
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 900,
                    "description": "Category description."
                  },
                  "active": {
                    "type": "boolean",
                    "description": "Whether to display this category."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000,
                    "description": "Displayed category capacity."
                  }
                },
                "required": [
                  "id",
                  "label",
                  "productId",
                  "color",
                  "description",
                  "active",
                  "limit"
                ],
                "additionalProperties": false
              },
              "description": "Categories linked to native ticket products."
            }
          },
          "required": [
            "type",
            "subtitle",
            "city",
            "cover",
            "accent",
            "ticketStyle",
            "layout",
            "rows",
            "seatsPerRow",
            "tables",
            "seatsPerTable",
            "features",
            "form",
            "guestRules",
            "categories"
          ],
          "additionalProperties": false
        },
        "guestFields": {
          "description": "Up to six additional fields for each attendee, fixed after publication.",
          "maxItems": 6,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_]{0,31}$",
                "description": "Stable ID used in this attendee’s answers."
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80,
                "description": "Question displayed to each attendee."
              },
              "required": {
                "type": "boolean",
                "description": "Require an answer before reserving or receiving a ticket."
              }
            },
            "required": [
              "id",
              "label",
              "required"
            ],
            "additionalProperties": false
          }
        },
        "description": {
          "type": "string",
          "maxLength": 4000,
          "description": "Public description."
        },
        "start": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
          "description": "Session start, with UTC offset."
        },
        "end": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
          "description": "Session finish, with UTC offset."
        },
        "salesOpen": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
          "description": "Opening of sales."
        },
        "salesClose": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
          "description": "Closing of sales."
        },
        "timeZone": {
          "type": "string",
          "maxLength": 80,
          "description": "IANA time zone."
        },
        "venue": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "description": "Venue name, including external venues."
        },
        "hallId": {
          "description": "Reusable hall assigned to this session.",
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,80}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "address": {
          "type": "string",
          "maxLength": 400,
          "description": "Guest-facing address."
        },
        "rules": {
          "type": "string",
          "maxLength": 4000,
          "description": "Admission, age, accessibility and refund terms shown before checkout."
        },
        "documentTemplates": {
          "description": "Authorized unbound native Documents layouts for the ticket and staff papers.",
          "type": "object",
          "properties": {
            "ticket": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,80}$",
              "description": "Stable identifier within the event."
            },
            "badge": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,80}$",
              "description": "Stable identifier within the event."
            },
            "card": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,80}$",
              "description": "Stable identifier within the event."
            },
            "voucher": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,80}$",
              "description": "Stable identifier within the event."
            }
          },
          "additionalProperties": false
        },
        "dressCode": {
          "description": "Guest-facing dress code.",
          "type": "string",
          "maxLength": 400
        },
        "agePolicy": {
          "description": "Published age and accompanying adult conditions.",
          "type": "string",
          "maxLength": 400
        },
        "accessibility": {
          "description": "Venue accessibility and accommodations.",
          "type": "string",
          "maxLength": 700
        },
        "refundTerms": {
          "description": "Guest-facing cancellation and refund terms.",
          "type": "string",
          "maxLength": 1600
        },
        "organizer": {
          "description": "Public organizer name.",
          "type": "string",
          "maxLength": 160
        },
        "guestContacts": {
          "description": "Public organizer contacts.",
          "type": "string",
          "maxLength": 400
        },
        "instructions": {
          "description": "Arrival and accessibility information.",
          "type": "string",
          "maxLength": 2000
        },
        "photoRetentionDays": {
          "default": 0,
          "description": "Photo retention in days after consent, up to the same number of days after the event. Zero disables photography.",
          "type": "integer",
          "minimum": 0,
          "maximum": 30
        },
        "transferAllowed": {
          "default": false,
          "description": "Allow a current holder to transfer an unused ticket to a signed-in recipient.",
          "type": "boolean"
        },
        "reentry": {
          "type": "boolean",
          "description": "Whether a guest can return after leaving."
        },
        "sections": {
          "minItems": 1,
          "maxItems": 128,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,80}$",
                "description": "Stable identifier within the event."
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "description": "Section, row or table label."
              },
              "productId": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,80}$",
                "description": "Native catalog product used for checkout pricing."
              },
              "type": {
                "type": "string",
                "enum": [
                  "general",
                  "row",
                  "table"
                ],
                "description": "How the numbered capacity units are presented."
              },
              "purchaseLimit": {
                "description": "Maximum units in this section per reservation.",
                "type": "integer",
                "minimum": 1,
                "maximum": 20
              },
              "salesOpen": {
                "description": "Optional later section sale opening.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "salesClose": {
                "description": "Optional earlier section closing.",
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "capacity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100000,
                "description": "Number of available capacity units in this section."
              },
              "benefits": {
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,80}$",
                      "description": "Stable identifier within the event."
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "description": "Entitlement label."
                    },
                    "quantity": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 100,
                      "description": "Included quantity per ticket."
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "quantity"
                  ],
                  "additionalProperties": false
                },
                "description": "Included items per attendee."
              }
            },
            "required": [
              "id",
              "title",
              "productId",
              "type",
              "capacity",
              "benefits"
            ],
            "additionalProperties": false
          },
          "description": "Capacity and native products for this session."
        },
        "checkpoints": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "description": "Allowed admission checkpoints."
        },
        "operators": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "description": "Assigned employee user identifiers."
        }
      },
      "required": [
        "title",
        "description",
        "start",
        "end",
        "salesOpen",
        "salesClose",
        "timeZone",
        "venue",
        "address",
        "rules",
        "photoRetentionDays",
        "transferAllowed",
        "reentry",
        "sections",
        "checkpoints",
        "operators"
      ],
      "additionalProperties": false
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "published",
        "paused",
        "completed",
        "canceled"
      ],
      "description": "Requested lifecycle state."
    },
    "siteId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,80}$"
    }
  },
  "required": [
    "eventId",
    "locationId",
    "requestId",
    "expectedRevision",
    "definition",
    "status",
    "siteId"
  ],
  "additionalProperties": false
}

Ответ

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "propertyNames": {
    "type": "string"
  },
  "additionalProperties": {
    "$ref": "#/$defs/__schema0"
  },
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}
Открыть JSON карточки

Из этого раздела