{
"calendar": {
"organizer": "userid1",
"readonly": 1,
"set_as_default": 1,
"summary": "test_summary",
"color": "#FF3030",
"description": "test_describe",
"shares": [
{
"userid": "userid2"
},
{
"userid": "userid3",
"readonly": 1
}
]
},
"agentid": 1000014
}
curl --location -g --request POST 'http://127.0.0.1/cgi-bin/oa/calendar/add?access_token={{accesstoken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"calendar": {
"organizer": "userid1",
"readonly": 1,
"set_as_default": 1,
"summary": "test_summary",
"color": "#FF3030",
"description": "test_describe",
"shares": [
{
"userid": "userid2"
},
{
"userid": "userid3",
"readonly": 1
}
]
},
"agentid": 1000014
}'
{
"errcode": 0,
"cal_id": "string",
"errmsg": "string"
}