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

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


修改于 2023-12-12 03:19:17