Update a Calendar
put
/primeapi/restapi/calendar
Send a request to this endpoint to update a calendar. An application object with an ID value that matches the ID value provided in the JSON object in the request body will be updated to reflect the JSON contents.
Request
Supported Media Types
- application/json
A calendar object.
Root Schema : ApiEntityCalendar
Type:
Show Source
object
-
calendarCode(optional):
string
The unique code for the calendar.
-
calendarExceptions(optional):
array calendarExceptions
Unique Items Required:
true
-
calendarId(optional):
integer(int64)
The unique identifier for the calendar.
-
calendarName(optional):
string
The name of the calendar.
-
dayHourCount(optional):
number(double)
The number of hours in a day.
-
holiday(optional):
integer(int64)
The holiday list assigned to the calendar.
-
holidayMoveType(optional):
string
Allowed Values:
[ "NONE", "FORWARD", "BACKWARD", "CLOSEST_WORK_DAY" ]
Specifies a holiday within calendar work time. -
isAssignableToProject(optional):
boolean
Indicates whether or not the calendar can be assigned to a project.
-
isAssignableToResource(optional):
boolean
Indicates whether or not the calendar can be assigned to a resource.
-
link(optional):
string(url)
Read Only:
true
-
monthHourCount(optional):
number(double)
The number of hours in a month.
-
pushDownType(optional):
string
Allowed Values:
[ "MANUAL", "AUTOMATIC" ]
Specifies how a workspace calendar is shared across child workspaces. -
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response. -
weekHourCount(optional):
number(double)
The number of hours in a week.
-
workspaceId(optional):
integer(int64)
The unique identifier for the workspace for which the calendar belongs.
-
workTimeFriday(optional):
string
Friday.
-
workTimeMonday(optional):
string
Monday.
-
workTimeSaturday(optional):
string
Saturday.
-
workTimeSunday(optional):
string
Sunday.
-
workTimeThursday(optional):
string
Thursday.
-
workTimeTuesday(optional):
string
Tuesday.
-
workTimeWednesday(optional):
string
Wednesday.
-
yearHourCount(optional):
number(double)
The number of hours in a year.
Nested Schema : ApiEntityCalendarException
Type:
Show Source
object
-
calendarExceptionId(optional):
integer(int64)
The unique identifier for the calendar exception.
-
calendarId(optional):
integer(int64)
The unique identifier for the calendar.
-
exceptionDate(optional):
string(date-time)
The date that is marked as an exception. An exception is a change to the regularly scheduled time in the calendar.
-
exceptionName(optional):
string
The name of the exception for the calendar.
-
link(optional):
string(url)
Read Only:
true
-
updateDate(optional):
string(date-time)
Read Only:
true
Date when the record was last updated. Used for viewing and filtering records, obtained ONLY from GET calls, modified on and after a particular date. Not a part of POST response. -
workTime(optional):
string
Work time that is non-standard.
Response
Supported Media Types
- application/json
204 Response
Successful operation with no content.
400 Response
Invalid input for the calendar service. Verify the request contains valid data, then resubmit the request.