curl -X DELETE "https://api.saludya.com/api/schedules/101" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Delete a doctor schedule
curl -X DELETE "https://api.saludya.com/api/schedules/101" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Permanently delete a doctor schedule. This removes the recurring availability slot from the system.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DUVAN100/saludya-api/llms.txt
Use this file to discover all available pages before exploring further.
is_available to false instead if you want to temporarily disable a schedule.false, the API will reject deletion if appointments are scheduled.curl -X DELETE "https://api.saludya.com/api/schedules/101" \
-H "Authorization: Bearer YOUR_API_TOKEN"
curl "https://api.saludya.com/api/appointments?schedule_id=101&status=scheduled"
curl -X PUT "https://api.saludya.com/api/schedules/101" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{"is_available": false}'
curl -X DELETE "https://api.saludya.com/api/schedules/101?force=true" \
-H "Authorization: Bearer YOUR_API_TOKEN"
#!/bin/bash
# Get all schedule IDs for doctor
SCHEDULES=$(curl -s "https://api.saludya.com/api/schedules?doctor_id=5" \
-H "Authorization: Bearer YOUR_API_TOKEN" | \
jq -r '.schedules[].id')
# Delete each schedule
for schedule_id in $SCHEDULES; do
curl -X DELETE "https://api.saludya.com/api/schedules/$schedule_id" \
-H "Authorization: Bearer YOUR_API_TOKEN"
echo "Deleted schedule $schedule_id"
done