日历更新
POST
https://api.flashcat.cloud/calendar/update
最后修改时间:2023-12-14 04:23:23
请求参数
Authorization
在 query 添加参数
app_key
示例:
app_key: ********************
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
team_id
integer
管理团队ID,如果为0,代表仅创建者和主体账户可以修改配置
cal_id
string
日历ID
cal_name
string
日历名称,长度限制[1,40]字节
<= 40 字符
description
string
日历描述,长度限制长度限制[1,500]字节
<= 500 字符
timezone
string
日历时区,格式要求:需满足 IANA Time Zone Database 中的时区定义
workdays
array[integer]
工作日列表,如果列表为空,代表全周都是工作日。枚举值1,2,3,4,5,6,7代表周一至周日
枚举值:
0123456
extra_cal_ids
array[string]
关联的其他日历ID列表,比如中国大陆法定假日
示例
{
"team_id": 0,
"cal_id": "string",
"cal_name": "string",
"description": "string",
"timezone": "string",
"workdays": [
0
],
"extra_cal_ids": [
"string"
]
}
示例代码
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/calendar/update?app_key' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
error
object (DutyError)
可选
code
enum<string>
错误码
枚举值:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
错误描述
示例
{
"error": {
"code": "InvalidParameter",
"message": "string"
}
}

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


修改于 2023-12-14 04:23:23