Update a blocked period for a vehicle
PUT
/fleets/vehicles/{vehicle_id}/blocked-periods/{id}Request
Path Params
vehicle_id
string
required
Example:
1
id
string
required
Example:
1
Query Params
vehicle_id
integer
optional
id
integer
required
Vehicle ID
Body Params application/x-www-form-urlencoded
start_date_date
integer
required
Start date date
Example:
2024-09-10
start_date_time
integer
required
Start date time
Example:
07:30:00
end_date_date
number
required
End date date
Example:
2024-09-12
end_date_time
integer
required
End date time
Example:
09:30:00
description
integer
optional
Description
Example:
blocked period 3
color
integer
optional
Color for calendar
Example:
%23cc4915
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
success
boolean
required
status_code
integer
required
errors
array[string]
required
data
object
required
blocked_period
object
required
Example
{
"success": true,
"status_code": 200,
"errors": [],
"data": {
"blocked_period": {
"id": 5,
"start_date": "2024-09-10 11:30:00",
"end_date": "2024-09-12 13:30:00",
"description": "blocked period 3",
"color": "#cc4915",
"created_at": "2024-08-23 12:32:23",
"updated_at": "2024-08-23 12:35:04",
"vehicle": {
"id": 1,
"label": "EAGLE EYES HD416-B0WHW - 1",
"plate": "1",
"odometer": 181093,
"fuel_level": 8,
"latitude": "-17.650561",
"longitude": "-149.467145",
"vehicle_key": "0001",
"vehicle_class_label": "Economic Manual",
"public_image_link": "https://franco-iarlori.staging-1.hqrentalsoftware.com/public/fleets/images/5d94a8df-6652-4a35-bf4b-2438f087595c/vehicle-class",
"status": "dirty",
"reserved_until": null,
"reserved_member_id": null,
"distance_to_formatted": "0 mi",
"distance_to": 0,
"distance_costs": {
"currency": "usd",
"currency_icon": "$",
"amount": "0.00",
"usd_amount": "0.00",
"amount_for_display": "$0.00"
},
"fuel_costs": {
"currency": "usd",
"currency_icon": "$",
"amount": "0.00",
"usd_amount": "0.00",
"amount_for_display": "$0.00"
},
"current_location": {
"name": "Office",
"address": ""
},
"current_rate": null,
"features": [
{
"id": 2,
"order": 1,
"label": "Manual Transmission",
"label_for_website": {
"en": "",
"es": "Transmisión Manual"
},
"icon": "fas fa-car",
"image": null,
"images": []
},
{
"id": 3,
"order": 1,
"label": "Airconditioning",
"label_for_website": {
"en": "",
"es": "Aire Acondicionado"
},
"icon": "fab fa-linux",
"image": null,
"images": []
},
{
"id": 4,
"order": 1,
"label": "Radio/CD Player",
"label_for_website": {
"en": "",
"es": "Radio/CD",
"pt": ""
},
"icon": "fas fa-radio",
"image": null,
"images": []
},
{
"id": 5,
"order": 1,
"label": "Power Steering",
"label_for_website": {
"en": "",
"es": "Dirección Asistida",
"pt": ""
},
"icon": "fas fa-steering-wheel",
"image": null,
"images": []
},
{
"id": 6,
"order": 1,
"label": "4-doors",
"label_for_website": {
"en": "",
"es": "4-puertas",
"pt": ""
},
"icon": "fas fa-door-open",
"image": null,
"images": []
}
]
}
}
}
}
Last modified: 4 months ago