更新值班表
POST
https://api.flashcat.cloud/schedule/update
最后修改时间:2023-12-18 02:48:26
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/schedule/update?app_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"layers": [
{
"layer_name": "string",
"mode": 0,
"groups": [
{
"group_name": "string",
"members": [
{
"role_id": 0,
"person_ids": [
0
]
}
]
}
],
"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
]
},
"rotation_unit": "hour",
"rotation_value": 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": ""
}
}
请求参数
Body 参数application/json