Update timings
POST
http://localhost:3000/graphqlMutation
mutation UpdateTimingDetails($doctorId: Float!, $day: String!, $updateTimingDetails: UpdateTimingDto!) {
updateTimingDetails(doctor_id: $doctorId, day: $day, updateTimingDetails: $updateTimingDetails) {
message
status
}
}
variables
{
"doctorId": 3,
"day": "monday",
"updateTimingDetails": {
"from": "09:00:00",
"to": "19:00:00",
"break_to": "13:00:00",
"break_from": "14:00:00"
}
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"updateTimingDetails": {
"message": "Timing details updated successfully",
"status": "success"
}
}
}
Last modified: 2 months ago