Skip to main content

Create a Custom Calendar

This operation creates a custom calendar. More Details

Request Body
  • customCalendarOperationType integer
  • customCalendar object
  • beginDate integer
  • defineCustomMonths boolean
  • isDefault boolean
  • numberOfYears integer
  • beginYear integer
  • beginMonth integer
  • customCalendarEntity object
  • customCalendarName string
  • customCalendarMonths object[]
  • month integer
  • year integer
  • numberOfDays integer
Responses

OK

POST /commserv/customcalendar    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body

{
"customCalendarOperationType": 0,
"customCalendar": {
"beginDate": 0,
"defineCustomMonths": true,
"isDefault": true,
"numberOfYears": 0,
"beginYear": 0,
"beginMonth": 0,
"customCalendarEntity": {
"customCalendarName": "string"
},
"customCalendarMonths": [
{
"month": 0,
"year": 0,
"numberOfDays": 0
}
]
}
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/CommServ/CustomCalendar' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"customCalendarOperationType": 0,
"customCalendar": {
"beginDate": 0,
"defineCustomMonths": true,
"isDefault": true,
"numberOfYears": 0,
"beginYear": 0,
"beginMonth": 0,
"customCalendarEntity": {
"customCalendarName": "string"
},
"customCalendarMonths": [
{
"month": 0,
"year": 0,
"numberOfDays": 0
}
]
}
}'