Перейти к основному содержанию
GET
/
v1
/
crm
/
maintenances
/
tasklist
/
interval
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/maintenances/tasklist/interval/
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "name": "<string>",
      "car": {
        "id": 123,
        "type": "CAR",
        "brand": "<string>",
        "model": "<string>",
        "number": "<string>",
        "tech_passport": "<string>",
        "serial": "<string>",
        "vin": "<string>",
        "extra": "<unknown>"
      },
      "remaining_distance": 123,
      "next_maintenance_date": "2023-11-07T05:31:56Z",
      "group": 123,
      "unique_id": "<string>",
      "category": 123,
      "image": "<string>",
      "extra": "<unknown>",
      "sublease_user": 123,
      "state": 123,
      "disabled": 0,
      "rental_point": 123
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Параметры запроса

page
integer

A page number within the paginated result set.

pageSize
integer

Number of results to return per page.

Ответ

200 - application/json
count
integer
обязательно
Пример:

123

results
object[]
обязательно
next
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Пример:

"http://api.example.org/accounts/?page=2"