curl --request POST \
--url https://api.example.com/api/schedule/schedules.create \
--header 'Content-Type: application/json' \
--data '
{
"team_id": "872815618512410358",
"when": "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;DTSTART=20260101T120000;UNTIL=20260105T120000",
"resource_id": "872815618512410358",
"hour_ranges": [
{
"hour_range": "12:34:56/PT2H",
"auto_correct": {
"before_start": "PT1H30M20S",
"after_start": "PT1H30M20S",
"before_end": "PT1H30M20S",
"after_end": "PT1H30M20S"
},
"paid_break": {
"max_duration": "PT1H30M20S",
"hour_range": "12:34:56/PT2H"
}
}
],
"options": {
"employee_resident_ratio": true,
"text_color": "<string>",
"special_hours": "12:34:56/PT2H",
"schedule_on_bank_holidays": true,
"allow_partial": false
},
"schedule_template_id": "872815618512410358",
"adjustment": {
"value": "PT1H30M20S",
"time": "12:34:56"
},
"break_time": {
"min_duration": "PT1H30M20S",
"hour_range": "12:34:56/PT2H"
},
"remark": "<string>"
}
'