Заказы · Изменение
События · Аккредитация · Сохранение
events_accreditation_save
Попробуйте три запроса
Подготовить
- Вы указываетеМероприятие
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «События / Аккредитация / Сохранение». Для изменения нужны мероприятие, cardId. Покажи объект и ожидаемый эффект до выполнения.
- eventId
- Мероприятие
- cardId
- Параметр
- role
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «События / Аккредитация / Сохранение» с параметром role = organizer. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- role
- organizer
- eventId
- DEMO-101
- cardId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «События / Аккредитация / Сохранение» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Create or edit an event organizer or press accreditation, optionally with a consented private photo. Does not reserve a seat. Создать карточку организатора или прессы с фотографией.
Параметры запроса
- eventId
- Native event session ID. обязательно по схеме · string
- cardId
- Staff accreditation ID, unique within this event. обязательно по схеме · string
- role
- Event organizer or accredited press. обязательно по схеме · string · варианты organizer, press
- name
- Name to print. обязательно по схеме · string · до символов 100
- organization
- Team, publication or organization. обязательно по схеме · string · по умолчанию "" · до символов 100
- expectedRevision
- Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- photo
- Attach or replace a private portrait with explicit consent. необязательно · object
- removePhoto
- Remove the existing portrait. Omit when attaching one. необязательно · boolean
Что вернёт команда
- 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."
},
"cardId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"description": "Staff accreditation ID, unique within this event."
},
"role": {
"type": "string",
"enum": [
"organizer",
"press"
],
"description": "Event organizer or accredited press."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Name to print."
},
"organization": {
"default": "",
"description": "Team, publication or organization.",
"type": "string",
"maxLength": 100
},
"expectedRevision": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Use zero for a new card, otherwise its current 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."
},
"photo": {
"description": "Attach or replace a private portrait with explicit consent.",
"type": "object",
"properties": {
"jpeg": {
"type": "string",
"minLength": 4,
"maxLength": 28000,
"pattern": "^[A-Za-z0-9+/]+=*$",
"description": "Cropped JPEG portrait encoded as base64, at most 21 KB before encoding."
},
"consent": {
"type": "boolean",
"const": true,
"description": "The person agreed to store and print this portrait on this event card."
}
},
"required": [
"jpeg",
"consent"
],
"additionalProperties": false
},
"removePhoto": {
"description": "Remove the existing portrait. Omit when attaching one.",
"type": "boolean",
"const": true
}
},
"required": [
"eventId",
"cardId",
"role",
"name",
"organization",
"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"
}
}
]
}
}
}