Chuyển đến nội dung chính
Mục lục tài liệu
PATCH

/vehicle-plans/{my_vehicle_id}

Mở trong ChatGPTMở trong Claude

Đường dẫn

PATCH/api/v1/partners/vehicle-plans/{my_vehicle_id}
Xác thực yêu cầutoken

Ví dụ gọi bằng curl

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": {}
}'

Tham số

TênVị tríKiểuBắt buộcMô tả
my_vehicle_idpathstringCó

Nội dung gửi lên

TrườngKiểuBắt buộcMô tả
registration_numberstringKhôngBiển số xe
resource_idnumberKhôngID nhóm xe (group base vehicle)
from_addressstringKhôngĐịa chỉ khởi hành
owner_post_office_codestringKhôngMã bưu cục sở hữu xe
from_latnumberKhôngFrom latitude
from_lonnumberKhôngFrom longitude
from_working_timestring (date-time)KhôngThời gian bắt đầu làm việc (timestamp)
handling_unit_idsstringKhôngIDs of group handling unit goods, joined by ":"
height_of_vehiclenumberKhôngChiều cao thùng xe (cm)
length_of_vehiclenumberKhôngChiều dài thùng xe (cm)
width_of_vehiclenumberKhôngChiều rộng thùng xe (cm)
vehicle_tonnagenumberKhôngTải trọng xe (kg)
to_addressstringKhôngĐịa chỉ nơi đến
to_latnumberKhôngTo latitude
to_lonnumberKhôngTo longitude
to_working_timestring (date-time)KhôngThời gian kết thúc làm việc (timestamp)
member_idstringKhôngMember ID
offer_kind1 | 2 | 3KhôngOffer kind (1: theo tuyến, 2: theo thời gian)
18 trườngUpdateVehiclePlansDto

Kết quả trả về

200

Về nhóm: Kế hoạch xe

PATCH /vehicle-plans/{my_vehicle_id} | Route4Green