Update vehicle offer
Description
Editing a vehicle offer removes the original offer and assigns a new offer id.
Url parameters and connection settings
- URL: https://api.platform.trans.eu
- Endpoint: /ext/vehicles-api/v1/vehicles/{offerId}
- Method: PUT
Headers
- Content-type: application/json
- Accept: application/json
- Authorization: Bearer {access_token}
- Api-key: {unique_app_api-key}
Authorization and access
Authorization process is described here. Each API request must also consist of unique Api-key obtained during application registration together with client_id and client_secret.
Update Vehicle offer request
Example of request for updating vehicle offer. For allowed values please look here.
{
"vehicle_size": "bus",
"truck_body": "standard-tent",
"loading_place": {
"address": {
"locality": "Wroclaw",
"postal_code": "56-111",
"country": "pl"
}
},
"unloading_place": {
"address": {
"locality": "Wroclaw",
"postal_code": "56-111",
"country": "pl"
}
},
"cargo": {
"capacity": 5
},
"available_on": {
"begin": "2021-03-09T15:25:00+0000",
"end": "2021-03-09T19:25:00+0000"
}
}
Response
Confirmation of properly updating offer
{
"id": "01E4WTST4JK6HT6SZD8PDY7BDS"
}