Перейти к основному содержанию
GET
/
v1
/
crm
/
maintenances
/
{id}
cURL
curl --request GET \
  --url https://api.example.com/v1/crm/maintenances/{id}/
{
  "id": 123,
  "name": "<string>",
  "inventory": {
    "id": 123,
    "name": "<string>",
    "car": {
      "id": 123,
      "type": "CAR",
      "brand": "<string>",
      "model": "<string>",
      "number": "<string>",
      "tech_passport": "<string>",
      "serial": "<string>",
      "vin": "<string>",
      "extra": "<unknown>"
    },
    "group": 123,
    "unique_id": "<string>",
    "category": 123,
    "image": "<string>",
    "extra": "<unknown>",
    "sublease_user": 123,
    "state": 123,
    "disabled": 0,
    "rental_point": 123
  },
  "maintenance_date": "2023-11-07T05:31:56Z",
  "responsible": 123,
  "comment": "<string>",
  "fact_maintenance_date": "2023-11-07T05:31:56Z",
  "end_total_distance": 123,
  "description": "<string>",
  "state": 123,
  "interval": "<string>",
  "type": 0,
  "period_type": 0,
  "distance_threshold": -1,
  "time_threshold": "<string>",
  "total_distance": 0,
  "distance": 0
}

Параметры пути

id
integer
обязательно

Ответ

200 - application/json
id
integer
обязательно
name
string
обязательно
Maximum string length: 255
inventory
object
обязательно
maintenance_date
string<date-time>
обязательно
responsible
integer
обязательно
comment
string | null
обязательно
fact_maintenance_date
string<date-time> | null
обязательно
end_total_distance
integer | null
обязательно
description
string | null
state
integer | null
interval
string | null
type
enum<integer>
  • 0 - one time
  • 1 - periodic
Доступные опции:
0,
1
Требуемый диапазон: -32768 <= x <= 32767
period_type
  • 0 - interval
  • 1 - distance
Доступные опции:
0,
1
Требуемый диапазон: -32768 <= x <= 32767
distance_threshold
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647
time_threshold
string | null
total_distance
integer<int64> | null
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000
distance
integer<int64> | null
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000