Docs menu
PATCH
/vehicle-plans/{my_vehicle_id}
Path
PATCH
/api/v1/partners/vehicle-plans/{my_vehicle_id}Authentication required
tokencurl example
curl -X PATCH "https://<your-host>/api/v1/partners/vehicle-plans/{my_vehicle_id}" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "content-type: application/json" \
-d '{
"registration_number": "string",
"resource_id": 0,
"from_address": "string",
"owner_post_office_code": "string",
"from_lat": 0,
"from_lon": 0,
"from_working_time": "2026-01-01T00:00:00+07:00",
"handling_unit_ids": "string",
"height_of_vehicle": 0,
"length_of_vehicle": 0,
"width_of_vehicle": 0,
"vehicle_tonnage": 0,
"to_address": "string",
"to_lat": 0,
"to_lon": 0,
"to_working_time": "2026-01-01T00:00:00+07:00",
"member_id": "string",
"offer_kind": {}
}'Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| my_vehicle_id | path | string | Yes |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| registration_number | string | No | Biển số xe |
| resource_id | number | No | ID nhóm xe (group base vehicle) |
| from_address | string | No | Địa chỉ khởi hành |
| owner_post_office_code | string | No | Mã bưu cục sở hữu xe |
| from_lat | number | No | From latitude |
| from_lon | number | No | From longitude |
| from_working_time | string (date-time) | No | Thời gian bắt đầu làm việc (timestamp) |
| handling_unit_ids | string | No | IDs of group handling unit goods, joined by ":" |
| height_of_vehicle | number | No | Chiều cao thùng xe (cm) |
| length_of_vehicle | number | No | Chiều dài thùng xe (cm) |
| width_of_vehicle | number | No | Chiều rộng thùng xe (cm) |
| vehicle_tonnage | number | No | Tải trọng xe (kg) |
| to_address | string | No | Địa chỉ nơi đến |
| to_lat | number | No | To latitude |
| to_lon | number | No | To longitude |
| to_working_time | string (date-time) | No | Thời gian kết thúc làm việc (timestamp) |
| member_id | string | No | Member ID |
| offer_kind | 1 | 2 | 3 | No | Offer kind (1: theo tuyến, 2: theo thời gian) |
18 fieldsUpdateVehiclePlansDto
Responses
200