Перейти к содержанию

title: "Событие временной шкалы" summary: | /api/timeline-event методы. redirect_from: - /ru/docs/latest/api/timeline-event


Событие временной шкалы

/api/timeline-event методы.

DELETE /api/timeline-event/:id

Удалить [[TimelineEvent]].

ПАРАМЕТРЫ:

  • id value must be an integer greater than zero.

GET /api/timeline-event/:id

Получить [[TimelineEvent]] с id.

ПАРАМЕТРЫ:

  • id value must be an integer greater than zero.

POST /api/timeline-event/

Создать новый [[TimelineEvent]].

ПАРАМЕТРЫ:

  • timestamp value must be a valid date string.

  • question_id nullable value must be an integer greater than zero.

  • description nullable string.

  • archived nullable boolean.

  • timezone string.

  • time_matters nullable boolean.

  • name value must be a non-blank string.

  • timeline_id value must be an integer greater than zero.

  • source nullable enum of collections, question.

  • icon nullable enum of star, cake, mail, warning, bell, cloud.

PUT /api/timeline-event/:id

Обновить [[TimelineEvent]].

ПАРАМЕТРЫ:

  • timestamp nullable value must be a valid date string.

  • description nullable string.

  • archived nullable boolean.

  • timezone nullable string.

  • time_matters nullable boolean.

  • name nullable value must be a non-blank string.

  • timeline_id nullable value must be an integer greater than zero.

  • icon nullable enum of star, cake, mail, warning, bell, cloud.

  • id value must be an integer greater than zero.

  • timeline-event-updates