Create Appointment
Use the createAppointment mutation to schedule a user appointment.
Arguments
Argument Name
Type
Description
appointmentType
ID!
ID of the appointment type defined on the coaching portal.
coach
ID
ID of the coach used to schedule the appointment.
datetime
DateTime!
Use this to send the exact number of credits the user will have.
contactType
CalendarContactType
Default "VIDEO_CALL", enum CalendarContactType { VIDEO_CALL GOOGLE_MEET ZOOM PHONE_CALL }
note
String
Optional meeting notes.
postEventStatus
PostEventStatus
enum PostEventStatus { SCHEDULED COMPLETED MEMBER_NO_SHOW COACH_NO_SHOW RESCHEDULED_BY_MEMBER RESCHEDULED_BY_COACH RESCHEDULED_BY_ADMIN CANCELED_BY_MEMBER CANCELED_BY_COACH CANCELED_BY_ADMIN }
Available Fields
Field Name
Type
Description
message
Boolean
True if the appointment has been created successfully. Otherwise, False
success
Boolean
Description of the result
Example
mutation{
createAppointment(input:{
appointmentType:"QXBwb2ludG1lbnRUeXBlOjEwNjM="
coach:"Q29hY2g6ODgwOA=="
datetime:"2025-10-09T14:30:00+00:00"
contactType:VIDEO_CALL
}){
success
message
appointment{
id
start
end
title
appointmentType{
title
id
}
}
}
}{
"data": {
"createAppointment": {
"success": true,
"message": "Appointment created",
"appointment": {
"id": "QXBwb2ludG1lbnQ6MzI4MDA=",
"start": "2025-10-09T14:30:00+00:00",
"end": "2025-10-09T15:00:00+00:00",
"title": "Test",
"appointmentType": {
"title": "Test",
"id": "QXBwb2ludG1lbnRUeXBlOjEwNjM="
}
}
}
}
}Last updated
Was this helpful?