Update Reserve Flag
PUT
/api/v1/cars/{id}/reserve
const url = 'https://dashboard.dealerstudio.com.au/api/v1/cars/example/reserve?reserved=true';const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url 'https://dashboard.dealerstudio.com.au/api/v1/cars/example/reserve?reserved=true' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Car ID/Slug/Custom_slug
Query Parameters
Section titled “Query Parameters ” reserved
required
boolean
Example
trueResponses
Section titled “ Responses ”Valid permissions
Invalid dealership
If car does not exist
Car is already reserved