{
"layers": [
{
"layer_name": "string",
"mode": 0,
"groups": [
{
"group_name": "string",
"members": [
{
"role_id": 0,
"person_ids": [
0
]
}
]
}
],
"rotation_duration": 3600,
"fair_rotation": true,
"handoff_time": 0,
"layer_start": 0,
"layer_end": 0,
"restrict_mode": 0,
"restrict_periods": [
{
"restrict_start": 0,
"restrict_end": 0
}
],
"day_mask": {
"repeat": [
0
]
}
}
],
"notify": {
"advance_in_time": 0,
"fixed_time": {
"cycle": "day",
"start": "string"
},
"by": {
"follow_preference": true,
"personal_channels": [
"email"
]
},
"webhooks": [
{
"type": "feishu",
"settings": {
"token": "string",
"alias": "string",
"integration_id": 0,
"chat_ids": [
"string"
],
"sign_secret": "string"
}
}
]
},
"schedule_id": 0,
"schedule_name": "string",
"team_id": 0,
"description": "string"
}
curl --location --request POST 'http://prod-cn.your-api-server.com/schedule/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"layers": [
{
"layer_name": "string",
"mode": 0,
"groups": [
{
"group_name": "string",
"members": [
{
"role_id": 0,
"person_ids": [
0
]
}
]
}
],
"rotation_duration": 3600,
"fair_rotation": true,
"handoff_time": 0,
"layer_start": 0,
"layer_end": 0,
"restrict_mode": 0,
"restrict_periods": [
{
"restrict_start": 0,
"restrict_end": 0
}
],
"day_mask": {
"repeat": [
0
]
}
}
],
"notify": {
"advance_in_time": 0,
"fixed_time": {
"cycle": "day",
"start": "string"
},
"by": {
"follow_preference": true,
"personal_channels": [
"email"
]
},
"webhooks": [
{
"type": "feishu",
"settings": {
"token": "string",
"alias": "string",
"integration_id": 0,
"chat_ids": [
"string"
],
"sign_secret": "string"
}
}
]
},
"schedule_id": 0,
"schedule_name": "string",
"team_id": 0,
"description": "string"
}'
{
"error": {
"code": "0",
"message": ""
}
}