Skip to content

Получить шаблон рабочего графика

Request

Возвращает рабочий график по id или список графиков по user_id и year.

Требования:

  • требуется JWT
  • передайте либо id, либо пару user_id + year
Security
bearerAuth or jwtCookie
Query
idinteger, (int64), >= 1

Идентификатор рабочего графика.

user_idinteger, (int64), >= 1

Идентификатор пользователя.

yearinteger, (int32)

Год графиков пользователя.

Example:year=2026
curl -i -X GET \
  'https://felmee.com/api/calendar/work-schedule?id=1&user_id=1&year=2026' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Рабочий график успешно получен

Bodyapplication/json
One of:
codeErrorstring or nullrequired

Устаревший camelCase-alias поля error_code; при ошибке оба поля содержат одинаковое значение.

successbooleanrequired

Флаг успешного выполнения запроса

messagestringrequired

Человекочитаемое описание результата

error_codestring or null(ERROR_CODE)required

Код ошибки. Для успешных ответов всегда null.

Enum:"invalid_body""unauthorized""not_found""conflict""object_modified_by_another_thread""action_too_late""too_many_request""code_is_gone""forbidden""user_blocked"
dataobject or null(WorkScheduleData)required

Полезная нагрузка. Может быть объектом, массивом или null.

Response
{ "success": true, "message": "Work schedule retrieved successfully", "codeError": null, "error_code": null, "data": { "work_schedule": {} } }