{"name":"site_event_wallet_template_save","title":"Сохранить шаблон билета в Wallet","section":"События и билеты","mode":"write","url":"/tools/site_event_wallet_template_save","blurb":"Сохраняет или применяет дизайн билета Apple Wallet и Google Wallet к выбранному событию.","aliases":"","kind":"Инструмент","examples":[{"label":"Рабочая задача","prompt":"Сохрани согласованный дизайн билета как шаблон «Мастерская» в библиотеке этого сайта и покажи, где его можно применить.","check":"Сохраняет или применяет дизайн билета Apple Wallet и Google Wallet к выбранному событию."},{"label":"Подготовить запрос","prompt":"Помоги подготовить вызов site_event_wallet_template_save для задачи «Сохранить шаблон билета в Wallet». Разбери eventId, saveAs, applyFrom и покажи, откуда взять точные значения для выбранного объекта. Остановись на черновике запроса.","check":"Сверить значения со схемой до вызова."},{"label":"После сбоя","prompt":"При выполнении «Сохранить шаблон билета в Wallet» связь прервалась после отправки. Для site_event_wallet_template_save проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.","check":"Сопоставить результат с исходной операцией."}],"inputSchema":{"$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},"outputSchema":{"$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"}}]}}}}