Cancel an appointment
curl --request POST \
--url https://jaliprohmis.derrickmugabwa.dev/api/v1/appointments/{appointment}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cancellation_reason": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cancellation_reason: '<string>'})
};
fetch('https://jaliprohmis.derrickmugabwa.dev/api/v1/appointments/{appointment}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://jaliprohmis.derrickmugabwa.dev/api/v1/appointments/{appointment}/cancel"
payload = { "cancellation_reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {}
}Staff appointments
Cancel an appointment
POST
/
appointments
/
{appointment}
/
cancel
Cancel an appointment
curl --request POST \
--url https://jaliprohmis.derrickmugabwa.dev/api/v1/appointments/{appointment}/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cancellation_reason": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({cancellation_reason: '<string>'})
};
fetch('https://jaliprohmis.derrickmugabwa.dev/api/v1/appointments/{appointment}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://jaliprohmis.derrickmugabwa.dev/api/v1/appointments/{appointment}/cancel"
payload = { "cancellation_reason": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {}
}