List workshops for the dealership DMS
GET
/api/v1/dealerships/{dealership_id}/service_booking/workshops
const url = 'https://dashboard.dealerstudio.com.au/api/v1/dealerships/1/service_booking/workshops';const options = {method: 'GET', 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 GET \ --url https://dashboard.dealerstudio.com.au/api/v1/dealerships/1/service_booking/workshops \ --header 'Authorization: Bearer <token>'Returns workshops discovered from the DMS (e.g. Titan WorkshopList). Requires dms_service_booking:dealership.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”dealership_id
required
integer
Dealership ID
Responses
Section titled “Responses”Workshops returned
Media typeapplication/json
object
workshops
required
Array<object>
object
id
required
integer
name
string
booking_start_time
string
booking_end_time
string
booking_interval
integer
capabilities
required
object
provider
required
string
service_options
required
boolean
live_availability
required
boolean
direct_confirmation
required
boolean
rescheduling
required
boolean
cancellation
required
boolean
separate_collection_times
required
boolean
Example
{ "workshops": [ { "id": 7, "name": "Main", "booking_start_time": "08:00", "booking_end_time": "17:00", "booking_interval": 30 } ], "capabilities": { "provider": "titan", "service_options": true, "live_availability": true, "direct_confirmation": true, "rescheduling": false, "cancellation": false, "separate_collection_times": false }}