Cancel Appointment
Cancel a trainer appointment that hasn't started or ended yet. You can only cancel your own appointment using JWT.
Path parameters
-
trainer_appointment_id
integer Required Id of the appointment in database (retrieved using GET /bank-card)
DELETE
/trainer-appointment/{trainer_appointment_id}
curl \
--request DELETE 'http://63.141.232.244:25540/v0/trainer-appointment/{trainer_appointment_id}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"success": true
}
Response examples (400)
{
"success": false,
"error": [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"client_id"
],
"message": "Required"
}
]
}
Response examples (401)
{
"success": false,
"error": "Unauthorized"
}
Response examples (429)
{
"success": false,
"error": "Too many requests, please try again later"
}