根据ID列表获取值班表信息
开发中
POST
https://api.flashcat.cloud/schedule/infos
最后修改时间:2024-05-21 06:44:13
请求参数
Authorization
在 query 添加参数
app_key
示例:
app_key: ********************
Body 参数application/json
schedule_ids
array[string]
值班id列表
示例
{
"schedule_id": 123,
"start": 1111111111,
"end": 11111111111
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/schedule/infos?app_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"schedule_id":123,
"start":1111111111,
"end":11111111111
}'
返回响应
🟢200成功
application/json
Body
error
object
必需
code
enum<string>
错误码
枚举值:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
错误描述
data
object
可选
items
array [object {5}]
可选
示例
{
"request_id": "0a63016e664c41337a598ff893017bb0",
"data": {
"items": [
{
"id": 2721315060917,
"name": "test001",
"account_id": 2451002751131,
"desc": "",
"group_id": 2477033058131,
"disabled": 0,
"create_at": 1706182604,
"create_by": 2715149662131,
"update_at": 1714484234,
"update_by": 2476909022131,
"layers": null,
"schedule_layers": null,
"final_schedule": {
"name": "",
"mode": 0,
"schedules": null
},
"notify": {
"advance_in_time": 0,
"by": {
"follow_preference": false,
"personal_channels": null
},
"webhooks": null
},
"schedule_id": 2721315060917,
"schedule_name": "test001",
"team_id": 2477033058131,
"description": "",
"layer_schedules": null,
"status": 0,
"cur_oncall": null,
"next_oncall": null
},
{
"id": 2862209469733,
"name": "test-紫光云",
"account_id": 2451002751131,
"desc": "",
"group_id": 2477033058131,
"disabled": 0,
"create_at": 1708934448,
"create_by": 2476909022131,
"update_at": 1714105918,
"update_by": 2476909022131,
"layers": null,
"schedule_layers": null,
"final_schedule": {
"name": "",
"mode": 0,
"schedules": null
},
"notify": {
"advance_in_time": 0,
"by": {
"follow_preference": true,
"personal_channels": null
},
"webhooks": null
},
"schedule_id": 2862209469733,
"schedule_name": "test-紫光云",
"team_id": 2477033058131,
"description": "",
"layer_schedules": null,
"status": 0,
"cur_oncall": null,
"next_oncall": null
}
]
}
}

添加官方技术人员微信
在这里,获得使用上的任何帮助,快速上手企业告警一站式响应平台FlashDuty


修改于 2024-05-21 06:44:13