MCP Site
site_event_wallet_template_save

Сохранить шаблон билета в Wallet

Сохраняет или применяет дизайн билета Apple Wallet и Google Wallet к выбранному событию.

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

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

Запрос в чат
Сохрани согласованный дизайн билета как шаблон «Мастерская» в библиотеке этого сайта и покажи, где его можно применить.
Что проверить в ответе

Сохраняет или применяет дизайн билета Apple Wallet и Google Wallet к выбранному событию.

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

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

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

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

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

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

Сохрани согласованный дизайн билета как шаблон «Мастерская» в библиотеке этого сайта и покажи, где его можно применить.

Параметры запроса
eventId
Идентификатор выбранной сессии события. строка · обязательно по схеме
saveAs
объект · необязательно
applyFrom
объект · необязательно
preset
cinema, theatre, concert, festival, gallery · обязательно по схеме
overrides
объект · необязательно
expectedRevision
Актуальная ревизия объекта перед изменением. целое число · обязательно по схеме · от 0 · до 9007199254740991
requestId
Идентификатор исходного запроса. Сохраните для проверки результата. строка · обязательно по схеме
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": "Native event session ID."
    },
    "saveAs": {
      "description": "Save the current design in this site library. Use the library item revision as expectedRevision, or zero to create.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,80}$",
          "description": "Stable ID of the reusable design."
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80,
          "description": "Name displayed in My templates."
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    },
    "applyFrom": {
      "description": "Copy this library design into this event. Optional overrides affect only this event. Use its template revision as expectedRevision.",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,80}$",
          "description": "ID of a reusable design from this event site."
        },
        "revision": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "description": "Reviewed revision of the reusable design."
        }
      },
      "required": [
        "id",
        "revision"
      ],
      "additionalProperties": false
    },
    "preset": {
      "type": "string",
      "enum": [
        "cinema",
        "theatre",
        "concert",
        "festival",
        "gallery"
      ],
      "description": "Prepared event design to use."
    },
    "overrides": {
      "description": "Changes to the preset. Omit for its original design.",
      "type": "object",
      "properties": {
        "color": {
          "description": "Wallet card background in hex.",
          "type": "string",
          "pattern": "^#[0-9a-f]{6}$"
        },
        "brand": {
          "description": "Card title. Empty uses the site name.",
          "type": "string",
          "maxLength": 50
        },
        "caption": {
          "description": "Short label above the event title.",
          "type": "string",
          "maxLength": 64
        },
        "hero": {
          "description": "Use preset artwork, the published event cover, an uploaded image, or no image.",
          "type": "string",
          "enum": [
            "preset",
            "event",
            "custom",
            "none"
          ]
        },
        "heroMediaId": {
          "description": "Public media ID for the custom cover.",
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,80}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "logoMediaId": {
          "description": "Public media ID for the Wallet logo.",
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,80}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "date": {
          "description": "Display the session date and local time.",
          "type": "boolean"
        },
        "venue": {
          "description": "Display the venue.",
          "type": "boolean"
        },
        "seat": {
          "description": "Display an assigned row, table or seat.",
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Current Wallet template revision, zero on the first save."
    },
    "requestId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "Stable UUID for unchanged retries."
    },
    "siteId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,80}$",
      "description": "Website that owns the event."
    }
  },
  "required": [
    "eventId",
    "preset",
    "expectedRevision",
    "requestId",
    "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 карточки

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