Skip to content

Commit 89afb1b

Browse files
committed
occupancy_updated_at
1 parent fb0860c commit 89afb1b

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

docs/api/parking_zones.mdx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Parking Zones
44
---
55

66
import HighlightParam from '@site/src/components/HighlightParam';
7+
import JSONHighlight from '@site/src/components/JSONHighlight';
78

89
# 3. Parking Zones
910

@@ -23,6 +24,7 @@ import HighlightParam from '@site/src/components/HighlightParam';
2324
- **longitude** (`float`, -180..180)
2425
- **x** (`int`, ≥0)
2526
- **y** (`int`, ≥0)
27+
- <HighlightParam>**occupancy_updated_at** (`string`, ISO 8601)</HighlightParam>
2628
- **created_at** (`string`, ISO 8601)
2729
- **updated_at** (`string`, ISO 8601)
2830

@@ -47,7 +49,7 @@ import HighlightParam from '@site/src/components/HighlightParam';
4749

4850
**Response (200)**
4951
Массив объектов **Zone**:
50-
```json
52+
<JSONHighlight data={
5153
[
5254
{
5355
"zone_id": 1,
@@ -63,11 +65,12 @@ import HighlightParam from '@site/src/components/HighlightParam';
6365
{"latitude": 59.956231, "longitude": 30.309979, "x": 79, "y": 149},
6466
{"latitude": 59.956201, "longitude": 30.310043, "x": 32, "y": 145}
6567
],
68+
"occupancy_updated_at": "2025-10-08T08:10:00Z",
6669
"created_at": "2025-10-08T08:00:00Z",
6770
"updated_at": "2025-10-08T08:10:00Z"
6871
}
69-
]
70-
```
72+
]}
73+
highlight={["occupancy_updated_at"]}/>
7174

7275
**Ошибки**
7376

@@ -165,7 +168,7 @@ Authorization: Bearer <token>
165168
<HighlightParam>В случае отсутствия токена авторизации возвращаются все поля кроме `camera_id`.</HighlightParam>
166169

167170
**Response (200)** — объект **Zone**
168-
```json
171+
<JSONHighlight data={
169172
{
170173
"zone_id": 1,
171174
"camera_id": 1,
@@ -180,9 +183,11 @@ Authorization: Bearer <token>
180183
{"latitude": 59.956231, "longitude": 30.309979, "x": 79, "y": 149},
181184
{"latitude": 59.956201, "longitude": 30.310043, "x": 32, "y": 145}
182185
],
186+
"occupancy_updated_at": "2025-10-08T08:10:00Z",
183187
"created_at": "2025-10-08T08:00:00Z",
184188
"updated_at": "2025-10-08T08:10:00Z"
185-
}
189+
}}
190+
highlight={["occupancy_updated_at"]}/>
186191
```
187192
188193
**Ошибки** (в дополнение к [общим](/docs/api/#общие-ошибки))
@@ -223,7 +228,7 @@ Authorization: Bearer <token>
223228
> Серверные поля `zone_id`, `created_at`, `updated_at` выставляются сервером и игнорируются в теле запроса.
224229
225230
**Response (200)** — объект **Zone** после обновления
226-
```json
231+
<JSONHighlight data={
227232
{
228233
"zone_id": 1,
229234
"camera_id": 1,
@@ -238,9 +243,11 @@ Authorization: Bearer <token>
238243
{"latitude": 59.956231, "longitude": 30.309979, "x": 79, "y": 149},
239244
{"latitude": 59.956201, "longitude": 30.310043, "x": 32, "y": 145}
240245
],
246+
"occupancy_updated_at": "2025-10-08T08:10:00Z",
241247
"created_at": "2025-10-08T08:00:00Z",
242248
"updated_at": "2025-10-08T09:02:11Z"
243-
}
249+
}}
250+
highlight={["occupancy_updated_at"]}/>
244251
```
245252
246253
**Ошибки** (в дополнение к [общим](/docs/api/#общие-ошибки))

0 commit comments

Comments
 (0)