curl -X POST "https://api.saludya.com/api/schedules" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true
}'
{
"id": 101,
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true,
"created_at": "2026-03-06T10:30:00Z",
"updated_at": "2026-03-06T10:30:00Z"
}
Create a new doctor schedule
curl -X POST "https://api.saludya.com/api/schedules" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true
}'
{
"id": 101,
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true,
"created_at": "2026-03-06T10:30:00Z",
"updated_at": "2026-03-06T10:30:00Z"
}
Create a new recurring schedule for a doctor. Schedules define weekly availability patterns for appointment booking.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.
monday, tuesday, wednesday, thursday, friday, saturday, sunday08:00:0017:00:00curl -X POST "https://api.saludya.com/api/schedules" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true
}'
{
"id": 101,
"doctor_id": 5,
"day_of_week": "monday",
"start_time": "08:00:00",
"end_time": "12:00:00",
"is_available": true,
"created_at": "2026-03-06T10:30:00Z",
"updated_at": "2026-03-06T10:30:00Z"
}
# Monday - Friday morning shifts
for day in monday tuesday wednesday thursday friday; do
curl -X POST "https://api.saludya.com/api/schedules" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"doctor_id": 5,
"day_of_week": "'$day'",
"start_time": "08:00:00",
"end_time": "12:00:00"
}'
done
start_time must be before end_timeday_of_week must be lowercase and valid weekday namedoctor_id must reference an existing doctor