curl --request POST \
--url 'https://api.flashcat.cloud/schedule/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"schedule_name": "Production On-Call",
"description": "Primary on-call rotation for the production team",
"team_id": 4291079133131,
"layers": [
{
"layer_name": "Layer 1",
"name": "Layer 1",
"mode": 0,
"weight": 0,
"hidden": 0,
"groups": [
{
"group_name": "A",
"name": "A",
"members": [
{
"role_id": 0,
"person_ids": [
2451002751131
]
}
],
"start": 0,
"end": 0
},
{
"group_name": "B",
"name": "B",
"members": [
{
"role_id": 0,
"person_ids": [
2476123212131
]
}
],
"start": 0,
"end": 0
}
],
"rotation_unit": "day",
"rotation_value": 1,
"rotation_duration": 86400,
"handoff_time": 0,
"enable_time": 1712000000,
"expire_time": 0,
"restrict_mode": 0,
"restrict_start": 0,
"restrict_end": 0,
"restrict_periods": [],
"day_mask": {
"repeat": [
1,
2,
3,
4,
5
]
},
"fair_rotation": false,
"mask_continuous_enabled": false
}
],
"notify": {
"advance_in_time": 300,
"fixed_time": null,
"by": {
"follow_preference": true,
"personal_channels": null
},
"webhooks": null
}
}
'