Cancelar agendamento (soft-delete)
curl --request DELETE \
--url https://api.controleclinic.com.br/v1/scheduling/appointments/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.controleclinic.com.br/v1/scheduling/appointments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.controleclinic.com.br/v1/scheduling/appointments/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"success": false,
"error": null
}{
"error": "<string>"
}{
"error": "Insufficient scope"
}{
"error": "Not found"
}{
"error": "<string>"
}{
"error": "<string>"
}Agendamentos
Cancelar agendamento (soft-delete)
Não apaga: marca o agendamento como cancelled e mantém o histórico. Escopo: scheduling:delete.
DELETE
/
v1
/
scheduling
/
appointments
/
{id}
Cancelar agendamento (soft-delete)
curl --request DELETE \
--url https://api.controleclinic.com.br/v1/scheduling/appointments/{id} \
--header 'X-API-Key: <api-key>'const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.controleclinic.com.br/v1/scheduling/appointments/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.controleclinic.com.br/v1/scheduling/appointments/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"success": false,
"error": null
}{
"error": "<string>"
}{
"error": "Insufficient scope"
}{
"error": "Not found"
}{
"error": "<string>"
}{
"error": "<string>"
}