Skip to content

Обновить событие

Ручка#

PATCH/event/v1/update_event

Полный адрес в сети#

Среда URL
🧪 Dev https://gateway.devterra.ru/admin/event/v1/update_event
🚀 Prod https://mobile-api.terraprod.ru/admin/event/v1/update_event

Тело запроса#

Поле Тип Описание Пример
ID int32 Уникальный идентификатор 1
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 array Программа события [ { "title": "...", "description": "...", "startTime": "..." } ]
eventQuestion.questions array Вопросы и ответы для анкеты [ { "question": "...", "answer": "..." } ]
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 менторского события (если есть) 0
mentorLevels []int32 Уровни менторов [0]
name string Название события "string"
placeScheme.scheme []string Планировка/схема размещения ["string"]
properties.URLButton object Кнопка с ссылкой
properties.chat string Чат мероприятия "string"
properties.other string Прочее "string"
properties.speakers []string Спикеры ["string"]
properties.url string Внешняя ссылка "string"
redirectLink.redirectLink string Ссылка на редирект после регистрации "https://google.com"
redirectLink.redirectLinkName string Название ссылки "Some name"
redirectLink.redirectLinkAutoText string Автотекст (может быть null) "null"
redirectLink.redirectLinkButtonText string Текст кнопки (может быть null) "null"
redirectLink.redirectLinkDescription string Описание (может быть null) "null"
typeID int32 Тип события 1
schoolFlowUUID string (UUID) UUID потока школы "7996d2f3-5eb5-44a3-b39e-7d5cd0cd4a58"
canRegisterWithoutSchool bool Можно ли зарегистрироваться без записи в школу true

Пример JSON запроса#

{
  "ID": 1,
  "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": 0,
  "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 ответа#

200 OK "string"