MCP Control
Заказы · Изменение

События · Сохранение

events_save
Упакованный заказ на стойке

Попробуйте три запроса

Подготовить
  1. Вы указываетеМероприятие
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «События / Сохранение». Для изменения нужны мероприятие, филиал. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
eventId
Мероприятие
locationId
Филиал
definition
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «События / Сохранение» с параметром status = draft. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
status
draft
eventId
DEMO-101
locationId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «События / Сохранение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Create a draft, revise event settings, or change the lifecycle using a checked revision and current native catalog.

Параметры запроса
eventId
Exact event session identifier. обязательно по схеме · string
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
definition
Session details and inventory configuration. обязательно по схеме · object
status
Requested lifecycle state. обязательно по схеме · string · варианты draft, published, paused, completed, canceled
Что вернёт команда
result
Event record, bounded page, credential verification or committed operation receipt. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа events_save
Вход · JSON Schema
{
  "$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."
        },
        "siteId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,80}$",
          "description": "Company website authorized to display this event."
        },
        "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",
        "siteId",
        "checkpoints",
        "operators"
      ],
      "additionalProperties": false,
      "description": "Session details and inventory configuration."
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "published",
        "paused",
        "completed",
        "canceled"
      ],
      "description": "Requested lifecycle state."
    }
  },
  "required": [
    "eventId",
    "locationId",
    "requestId",
    "expectedRevision",
    "definition",
    "status"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Event record, bounded page, credential verification or committed operation receipt."
    }
  },
  "required": [
    "result"
  ],
  "additionalProperties": false,
  "$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"
          }
        }
      ]
    }
  }
}