Заказы · Изменение
События · Спонсоры · Сохранение
events_sponsor_save
Попробуйте три запроса
Подготовить
- Вы указываетеМероприятие
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «События / Спонсоры / Сохранение». Для изменения нужны мероприятие, sponsorId. Покажи объект и ожидаемый эффект до выполнения.
- eventId
- Мероприятие
- sponsorId
- Параметр
- name
- Название
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «События / Спонсоры / Сохранение» с параметром eventId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- eventId
- DEMO-101
- sponsorId
- DEMO-101
- name
- Осенняя коллекция
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «События / Спонсоры / Сохранение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Create or edit a sponsor for this event. The declared sponsorship amount records the agreement and does not book a payment.
Параметры запроса
- eventId
- Native event session ID. обязательно по схеме · string
- sponsorId
- Stable sponsor record ID for this event. обязательно по схеме · string
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- name
- Sponsor or organization name. обязательно по схеме · string · до символов 120
- tier
- Sponsorship level or role. обязательно по схеме · string · по умолчанию "" · до символов 80
- starts
- First day of sponsorship. обязательно по схеме · null · по умолчанию null
- ends
- Last day of sponsorship. обязательно по схеме · null · по умолчанию null
- amount
- Declared sponsorship amount in major currency units. обязательно по схеме · number / null · по умолчанию null
- currency
- ISO 4217 code for the sponsorship amount. обязательно по схеме · string
- logoMediaId
- Public image ID in the event site media library, or null. обязательно по схеме · string / null · по умолчанию null
- pressWall
- Include this sponsor on the event press wall. обязательно по схеме · boolean · по умолчанию true
Что вернёт команда
- 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."
},
"sponsorId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"description": "Stable sponsor record ID for this event."
},
"expectedRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Zero for a new sponsor or the current record revision."
},
"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."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Sponsor or organization name."
},
"tier": {
"default": "",
"description": "Sponsorship level or role.",
"type": "string",
"maxLength": 80
},
"starts": {
"default": null,
"description": "First day of sponsorship.",
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
]
},
"ends": {
"default": null,
"description": "Last day of sponsorship.",
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
]
},
"amount": {
"default": null,
"description": "Declared sponsorship amount in major currency units.",
"anyOf": [
{
"type": "number",
"minimum": 0,
"maximum": 10000000000
},
{
"type": "null"
}
]
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 code for the sponsorship amount."
},
"logoMediaId": {
"default": null,
"description": "Public image ID in the event site media library, or null.",
"anyOf": [
{
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,80}$"
},
{
"type": "null"
}
]
},
"pressWall": {
"default": true,
"description": "Include this sponsor on the event press wall.",
"type": "boolean"
}
},
"required": [
"eventId",
"sponsorId",
"expectedRevision",
"requestId",
"name",
"tier",
"starts",
"ends",
"amount",
"currency",
"logoMediaId",
"pressWall"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"format": "date",
"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])))$"
}
}
}Выход · 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"
}
}
]
}
}
}