Method: networks.vehicles.makeUnavailable
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
This endpoint, vehicles.makeUnavailable, is used to make a vehicle unavailable for scheduling, effectively removing it from the pool of available resources.
To utilize this endpoint, a POST request must be sent to the specified URL, including the vehicle's name in the path parameters.
The request body can optionally include unavailabilityStarts, specifying the periods when the vehicle becomes unavailable, with future timestamps; if omitted, unavailability starts immediately.
Upon success, the response provides the vehicle's name and a list of updated paths (path[]) impacted by the vehicle's unavailability.
Makes a vehicle unavailable.
HTTP request
POST https://middlemileoptimization.googleapis.com/v1/{name=networks/*/vehicles/*}:makeUnavailable
Required. The periods where unavailability will start. They must be points in time in the future. If this field is absent, unavailability starts when the message is received.
Response body
The response message for vehicles.makeUnavailable method.
If successful, the response body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[],["This outlines the process to mark a vehicle as unavailable via an HTTP POST request to a specific URL endpoint. The request requires the vehicle's name in the URL path and includes a body specifying when the unavailability starts, as a DateTime object array. If successful, the response includes the updated vehicle's name and the updated paths. If the unavailability start is not specified in the request, it begins at the message reception.\n"]]