Create Calendar
POST
/calendar/createRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
team_id
integer
Team ID, if 0 means only creator and owner account can modify configuration
cal_name
string
Calendar name, length limit [1,40] bytes
<= 40 characters
description
string
Calendar description, length limit [1,500] bytes
<= 500 characters
timezone
string
Calendar timezone, format requirement: must match timezone definition in IANA Time Zone Database
Example value: "Asia/Shanghai" Default value: "Asia/Shanghai"
workdays
array[integer]
Working day list, empty list means all days are working days. Enum values 1,2,3,4,5,6,7 represent Monday to Sunday
Allowed values:
0123456
extra_cal_ids
array[string]
Associated calendar ID list, like mainland China statutory holidays
Example
{
"team_id": 0,
"cal_name": "string",
"description": "string",
"timezone": "string",
"workdays": [
0
],
"extra_cal_ids": [
"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
optional
cal_id
string
Calendar ID
cal_name
string
Calendar name
Example
Not configured
Last modified: 2 个月前