Set Calendar Event
POST
/calendar/event/upsertRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
cal_id
string
Calendar ID
event_id
string
Event ID
Required when updating
summary
string
Calendar name, length limit [1,40] bytes
>= 1 characters<= 40 characters
description
string
Calendar description, length limit [1,500] bytes
<= 500 characters
is_off
boolean
Is rest day, false means working day
start_at
string
Start time
Example value: "2018-09-01"
end_at
string
End time
Example value: "2018-09-02"
Example
{
"cal_id": "string",
"event_id": "string",
"summary": "string",
"description": "string",
"is_off": true,
"start_at": "string",
"end_at": "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 个月前