Create appointment
POST
http://localhost:3000/graphqlMutation
mutation CreateAppointment($appointment: createAppointmentDTO!) {
createAppointment(appointment: $appointment) {
fees
id
ivr_app_id
patient_complaint
patient_current_weight
status
visit_type
appointment_date_time
}
}
Variables
{
"appointment": {
"doctor_user_id": 2,
"fees": 450,
"ivr_app_id": "null",
"patient_complaint": "insomnia",
"patient_current_weight": 43,
"patient_user_id": 5,
"visit_type": "offline",
"status": "scheduled",
"appointment_date_time": 1727152200000
}
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"createAppointment": {
"fees": 450,
"id": 5,
"ivr_app_id": "null",
"patient_complaint": "insomnia",
"patient_current_weight": 43,
"status": "scheduled",
"visit_type": "offline",
"appointment_date_time": "2024-09-24T04:30:00.000Z"
}
}
}
Last modified: 2 months ago