Создание нового события
Ручка
POST/event/v1/create_event
Полный адрес в сети
| Среда |
URL |
| 🧪 Dev |
https://gateway.devterra.ru/admin/event/v1/create_event |
| 🚀 Prod |
https://mobile-api.terraprod.ru/admin/event/v1/create_event |
Тело запроса
| Поле |
Тип |
Описание |
Обязательное |
Пример |
| canFreeRegister |
bool |
Можно ли зарегистрироваться бесплатно |
✅ |
true |
| categoryID |
int32 |
Идентификатор категории мероприятия |
✅ |
1 |
| date.dateFrom |
string |
Дата начала мероприятия |
✅ |
"2024-11-05T18:30:00+03:00" |
| date.dateTo |
string |
Дата окончания мероприятия |
✅ |
"2024-11-05T18:30:00+03:00" |
| eventProgram.programs |
object |
Программа мероприятия |
❌ |
|
| title |
string |
Название блока программы |
✅ |
"string" |
| description |
string |
Описание блока программы |
✅ |
"string" |
| startTime |
string |
Время начала блока |
✅ |
"2024-11-05T18:30:00+03:00" |
| eventQuestion.questions |
object |
Вопросы участникам |
❌ |
|
| question |
string |
Текст вопроса |
✅ |
"Какие у вас ожидания?" |
| answer |
string |
Ответ |
❌ |
"Ответ" |
| flowID |
int32 |
ID потока |
✅ |
1 |
| limits.mentors |
int32 |
Лимит наставников |
✅ |
1 |
| limits.students |
int32 |
Лимит учеников |
✅ |
1 |
| limits.volunteers |
int32 |
Лимит волонтёров |
✅ |
1 |
| location.addressName |
string |
Адрес проведения |
✅ |
"Москва, улица Пушкина..." |
| location.cityID |
int32 |
ID города |
✅ |
1 |
| location.countryID |
int32 |
ID страны |
✅ |
1 |
| location.description |
string |
Дополнительное описание адреса |
❌ |
"Дверь номер 666" |
| location.districtID |
int32 |
ID района |
✅ |
1 |
| location.latitude |
string |
Широта |
✅ |
"55.756817" |
| location.longitude |
string |
Долгота |
✅ |
"37.530103" |
| mentorEventID |
int32 |
ID родительского менторского события |
❌ |
1 |
| mentorLevels |
[]int32 |
Уровни наставников |
❌ |
[0] |
| name |
string |
Название мероприятия |
✅ |
"Мероприятие для школьников" |
| placeScheme.scheme |
[]string |
Схема зала (JSON или текст) |
❌ |
["A1", "A2"] |
| properties.URLButton |
object |
Данные кнопки с URL |
❌ |
|
| name |
string |
Название кнопки |
✅ |
"Подробнее" |
| header |
string |
Заголовок |
❌ |
"Спикеры" |
| description |
string |
Описание |
❌ |
"Описание кнопки" |
| URL |
string |
Ссылка |
✅ |
"https://example.com" |
| properties.chat |
string |
Ссылка на чат |
❌ |
"https://t.me/..." |
| properties.other |
string |
Прочее |
❌ |
"Доп. данные" |
| properties.speakers |
[]string |
Спикеры |
❌ |
["Иванов И.И."] |
| properties.url |
string |
Ссылка на мероприятие |
❌ |
"https://example.com" |
| redirectLink |
object |
Переадресация после регистрации |
❌ |
см. ниже |
| redirectLink |
string |
URL |
✅ |
"https://google.com" |
| redirectLinkName |
string |
Название кнопки/ссылки |
✅ |
"Some name" |
| redirectLinkAutoText |
string |
Автотекст |
❌ |
null |
| redirectLinkButtonText |
string |
Текст кнопки |
❌ |
null |
| redirectLinkDescription |
string |
Описание кнопки |
❌ |
null |
| typeID |
int32 |
Тип мероприятия |
✅ |
1 |
| schoolFlowUUID |
string (UUID) |
UUID потока школы |
❌ |
"7996d2f3-5eb5-44a3-b39e-7d5cd0cd4a58" |
| canRegisterWithoutSchool |
bool |
Можно ли зарегистрироваться без записи в школу |
❌ |
true |
Пример JSON запроса
{
"canFreeRegister": true,
"categoryID": 1,
"date": {
"dateFrom": "2024-11-05T18:30:00+03:00",
"dateTo": "2024-11-05T18:30:00+03:00"
},
"eventProgram": {
"programs": [
{
"description": "string",
"startTime": "2024-11-05T18:30:00+03:00",
"title": "string"
}
]
},
"eventQuestion": {
"questions": [
{
"answer": "string",
"question": "string"
}
]
},
"flowID": 1,
"limits": {
"mentors": 1,
"students": 1,
"volunteers": 1
},
"location": {
"addressName": "Москва, улица Пушкина, дом Колотушкина",
"cityID": 1,
"countryID": 1,
"description": "Дверь номер 666",
"districtID": 1,
"latitude": "55.756817",
"longitude": "37.530103"
},
"mentorEventID": 1,
"mentorLevels": [
0
],
"name": "string",
"placeScheme": {
"scheme": [
"string"
]
},
"properties": {
"URLButton": {
"URL": "string",
"description": "string",
"header": "string",
"name": "string"
},
"chat": "string",
"other": "string",
"speakers": [
"string"
],
"url": "string"
},
"redirectLink": {
"redirectLink": "https://google.com",
"redirectLinkAutoText": "null",
"redirectLinkButtonText": "null",
"redirectLinkDescription": "null",
"redirectLinkName": "Some name"
},
"typeID": 1,
"schoolFlowUUID": "091383eb-9786-4164-8ac6-5fbfde22297f",
"canRegisterWithoutSchool": false
}
Пример JSON ответа