Creates an appointment
POST
/api/v1/appointments
const url = 'https://dashboard.dealerstudio.com.au/api/v1/appointments';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"leadId":1,"dueDate":"example","activityType":"example","comments":"example","user_id":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.dealerstudio.com.au/api/v1/appointments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "leadId": 1, "dueDate": "example", "activityType": "example", "comments": "example", "user_id": 1 }'Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ” Media type application/json
object
leadId
required
integer
dueDate
required
string
activityType
required
string
comments
required
string
user_id
integer
Example generated
{ "leadId": 1, "dueDate": "example", "activityType": "example", "comments": "example", "user_id": 1}Responses
Section titled “ Responses ”Appointment created
Unauthorised for Invalid token
Lead not found
User not part of dealership