Unavailability
A vehicle can be marked as unavailable for a given period of time for various reasons. These unavailabilities are marked on the planning or can be accessed by API by fetching the vehicle.
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The ID of the unavailability in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZStart date of the unavailability
2020-07-30T21:10:06.44551ZEnd date of the unavailability
2020-07-30T21:10:06.44551ZType of unavailability
Notes about the unavailability
I'm on vacationSuccessfully created the unavailability, returns the vehicle, which contains the unavailability.
Successfully created the unavailability, returns the vehicle, which contains the unavailability.
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The vehicle's primary key
The unavailability's primary key
Empty body
No content
Empty body
No content
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The vehicle's primary key
The unavailability's primary key
The ID of the unavailability in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZStart date of the unavailability
2020-07-30T21:10:06.44551ZEnd date of the unavailability
2020-07-30T21:10:06.44551ZType of unavailability
Notes about the unavailability
I'm on vacationSuccessfully updated the unavailability, returns the vehicle, which contains the unavailability.
Successfully updated the unavailability, returns the vehicle, which contains the unavailability.
Last updated
Was this helpful?