curl --request POST \
--url 'https://api.flashcat.cloud/schedule/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"layers": [
{
"layer_name": "<string>",
"mode": 0,
"layer_start": 123,
"groups": [
{
"group_name": "<string>",
"members": [
{
"role_id": 123,
"person_ids": [
123
]
}
]
}
],
"fair_rotation": true,
"handoff_time": 123,
"layer_end": 123,
"restrict_mode": 0,
"restrict_periods": [
{
"restrict_start": 123,
"restrict_end": 123
}
],
"day_mask": {
"repeat": [
0
]
},
"rotation_unit": "hour",
"rotation_value": 123
}
],
"schedule_name": "<string>",
"status": 123,
"description": "<string>",
"notify": {
"advance_in_time": 123,
"fixed_time": {
"cycle": "day",
"start": "<string>"
},
"by": {
"follow_preference": true,
"personal_channels": [
"email"
]
},
"webhooks": [
{
"type": "feishu",
"settings": {
"token": "<string>",
"alias": "<string>",
"integration_id": 123,
"chat_ids": [
"<string>"
],
"sign_secret": "<string>"
}
}
]
},
"team_id": 123
}
'{
"data": {
"schedule_id": 0
},
"error": {
"code": "",
"message": ""
}
}curl --request POST \
--url 'https://api.flashcat.cloud/schedule/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"layers": [
{
"layer_name": "<string>",
"mode": 0,
"layer_start": 123,
"groups": [
{
"group_name": "<string>",
"members": [
{
"role_id": 123,
"person_ids": [
123
]
}
]
}
],
"fair_rotation": true,
"handoff_time": 123,
"layer_end": 123,
"restrict_mode": 0,
"restrict_periods": [
{
"restrict_start": 123,
"restrict_end": 123
}
],
"day_mask": {
"repeat": [
0
]
},
"rotation_unit": "hour",
"rotation_value": 123
}
],
"schedule_name": "<string>",
"status": 123,
"description": "<string>",
"notify": {
"advance_in_time": 123,
"fixed_time": {
"cycle": "day",
"start": "<string>"
},
"by": {
"follow_preference": true,
"personal_channels": [
"email"
]
},
"webhooks": [
{
"type": "feishu",
"settings": {
"token": "<string>",
"alias": "<string>",
"integration_id": 123,
"chat_ids": [
"<string>"
],
"sign_secret": "<string>"
}
}
]
},
"team_id": 123
}
'{
"data": {
"schedule_id": 0
},
"error": {
"code": "",
"message": ""
}
}此页面对您有帮助吗?