Calendar Details
POST
/calendar/infoRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
cal_id
string
Calendar ID
Can only get details of personal type calendars
Example
{
"cal_id": "string"
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
data
object (Calendar)
optional
team_id
integer
Management team ID, if 0 means only creator and owner account can modify configuration
cal_id
string
Calendar ID
cal_name
string
Calendar name, length limit [1,40] bytes
<= 40 characters
description
string
Calendar description, length limit [1,500] bytes
<= 500 characters
kind
enum<string>
Calendar type
Allowed values:
personalregion.official.holiday
timezone
string
Calendar timezone, format requirement: must match timezone definition in IANA Time Zone Database
Example value: "Asia/Shanghai"
workdays
array[integer]
Working day list
Empty for public holiday calendars
Allowed values:
0123456
extra_cal_ids
array[string]
Associated calendar ID list, like mainland China statutory holidays
Empty for public holiday calendars
created_at
integer
Created timestamp in seconds
updated_at
integer
Updated timestamp in seconds
creator_id
integer
Creator ID
0 for public holiday calendars
updated_by
integer
Updater ID
0 for public holiday calendars
Example
Not configured
Last modified: 2 个月前