Заказы · Изменение
События · Кошелёк · Шаблоны · Сохранение
events_wallet_template_save
Попробуйте три запроса
Подготовить
- Вы указываетеМероприятие
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «События / Кошелёк / Шаблоны / Сохранение». Для изменения нужны мероприятие, preset. Покажи объект и ожидаемый эффект до выполнения.
- eventId
- Мероприятие
- preset
- Параметр
- saveAs
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «События / Кошелёк / Шаблоны / Сохранение» с параметром preset = cinema. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- preset
- cinema
- eventId
- DEMO-101
- expectedRevision
- 4
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «События / Кошелёк / Шаблоны / Сохранение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Apply a built-in or saved Apple Wallet and Google Wallet design to this event, or create and edit a named design in this site library using saveAs.
Параметры запроса
- eventId
- Native event session ID. обязательно по схеме · string
- saveAs
- Save the current design in this site library. Use the library item revision as expectedRevision, or zero to create. необязательно · object
- applyFrom
- Copy this library design into this event. Optional overrides affect only this event. Use its template revision as expectedRevision. необязательно · object
- preset
- Prepared event design to use. обязательно по схеме · string · варианты cinema, theatre, concert, festival, gallery
- overrides
- Changes to the preset. Omit for its original design. необязательно · object
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- result
- Native event operation receipt or bounded page. обязательно по схеме · object
Поля и технические схемы

Вход · 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": "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."
}
},
"required": [
"eventId",
"preset",
"expectedRevision",
"requestId"
],
"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": "Native event operation receipt or bounded page."
}
},
"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"
}
}
]
}
}
}