Получить начальный курсор изменений рейсов исполнителя
Порядок работы для агента · Методы API и схема OpenAPI.
Назначение
Передайте границу чтения в data.toTime в формате RFC 3339. Возьмите курсор из data.id. Если записей до границы нет, курсор равен 0. Для одной организации укажите data.executorId и заранее проверьте право flight_view_changes_exec в ней. При недоступном идентификаторе метод вычисляет курсор по всем доступным организациям.
Блоки запроса и ответов ниже сгенерированы из OpenAPI. Подстановки вроде
exampleпоказывают структуру JSON. Для вызова возьмите значения из сценария, справочников или предыдущих ответов API.
Request
POST
https://partner-test-yamagistrali.ru/api/flight/changesForExecutors/getLastLogId/v0
Тестовый стенд
Body
application/json
{
"data": {
"executorId": "example",
"toTime": "2025-07-22T20:21:19.773333823Z"
}
}
|
Name |
Description |
|
data |
Type: FlightChangesForExecutorsGetLastLogIdV0Request Example
|
FlightChangesForExecutorsGetLastLogIdV0Request
|
Name |
Description |
|
executorId |
Type: string | null Example: |
|
toTime |
Type: string | null Example: |
Example
{
"executorId": "example",
"toTime": "2025-07-22T20:21:19.773333823Z"
}
Responses
200 OK
OK
Body
application/json
{
"data": {
"id": 0
}
}
|
Name |
Description |
|
data |
Type: FlightChangesForExecutorsGetLastLogIdV0Response Example
|
FlightChangesForExecutorsGetLastLogIdV0Response
|
Name |
Description |
|
id |
Type: integer |
Example
{
"id": 0
}
400 Bad Request
Bad Request
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|
Error
|
Name |
Description |
|
info |
Type: object Example
|
|
message |
Type: string Example: |
|
message_code |
Type: string Example: |
Example
{
"info": {},
"message": "example",
"message_code": "example"
}
403 Forbidden
Forbidden
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|
500 Internal Server Error
Internal Server Error
Body
application/json
{
"error": {
"info": {},
"message": "example",
"message_code": "example"
}
}
|
Name |
Description |
|
error |
Type: Error Example
|