Update a Calendar

put

/api/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

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ApiEntityCalendarInput
Type: object
Title: ApiEntityCalendarInput
This entity represents a Calendar object, a unique Calendar object can be identified by the following combinations of the fields.
  • calendarId
  • calendarCode,workspaceId
  • calendarCode,workspaceCode
  • calendarCode,projectId
  • calendarCode,projectCode,workspaceCode
  • calendarCode,projectCode,workspaceId
Show Source
  • Read Only: true
    Allowed Values: [ "OWNED", "INHERITED" ]
    Deprecated. As of 24.4.
    The type of association in the relationship between the calendar and the workspace. Possible values are Owned and Inherited.
  • Minimum Length: 0
    Maximum Length: 255
    The unique code for the calendar.
  • calendarExceptions
    Defines exceptions to the specified calendar.
  • The unique identifier for the calendar.
  • Minimum Length: 0
    Maximum Length: 255
    The name of the calendar.
  • The number of hours in a day.
  • The holiday list assigned to the calendar.
  • Allowed Values: [ "NONE", "FORWARD", "BACKWARD", "CLOSEST_WORK_DAY" ]
    Specifies a holiday within calendar work time.
  • Indicates whether or not the calendar can be assigned to a project.
  • Indicates whether or not the calendar can be assigned to a resource.
  • The number of hours in a month.
  • Minimum Length: 1
    Maximum Length: 60
    The unique identifier for a project set by the user who created the project.
  • The unique identifier for the project.The project object can also be identified by its unique criteria.
  • Allowed Values: [ "MANUAL", "AUTOMATIC" ]
    Specifies how a workspace calendar is shared across child workspaces.
  • Read Only: true
    Deprecated. As of 24.4.
    Date when the record was last updated.
  • The number of hours in a week.
  • Minimum Length: 0
    Maximum Length: 60
    The user-specified identifier of a workspace.
  • The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
  • Maximum Length: 48
    The working time for Friday.
    The value is a 48 character string, which can either be 0 to indicate non-work time or 1 to indicate work time. Each character in this 48 character string corresponds to a 30 minute slot available in a day. Two slots per hour multiplied by 24 hours equals 48 characters.
    For example, the 1's in the following string indicate that work time for the day is 9 AM to 5 PM.
    000000000000000000111111111111111100000000000000
  • Maximum Length: 48
    The working time for Monday.
    The value is a 48 character string, which can either be 0 to indicate non-work time or 1 to indicate work time. Each character in this 48 character string corresponds to a 30 minute slot available in a day. Two slots per hour multiplied by 24 hours equals 48 characters.
    For example, the 1's in the following string indicate that work time for the day is 9 AM to 5 PM.
    000000000000000000111111111111111100000000000000
  • Maximum Length: 48
    The working time for Saturday.
    The value is a 48 character string, which can either be 0 to indicate non-work time or 1 to indicate work time. Each character in this 48 character string corresponds to a 30 minute slot available in a day. Two slots per hour multiplied by 24 hours equals 48 characters.
    For example, the 1's in the following string indicate that work time for the day is 9 AM to 5 PM.
    000000000000000000111111111111111100000000000000
  • Maximum Length: 48
    The working time for Sunday.
    The value is a 48 character string, which can either be 0 to indicate non-work time or 1 to indicate work time. Each character in this 48 character string corresponds to a 30 minute slot available in a day. Two slots per hour multiplied by 24 hours equals 48 characters.
    For example, the 1's in the following string indicate that work time for the day is 9 AM to 5 PM.
    000000000000000000111111111111111100000000000000
  • Maximum Length: 48
    The working time for Thursday.
    The value is a 48 character string, which can either be 0 to indicate non-work time or 1 to indicate work time. Each character in this 48 character string corresponds to a 30 minute slot available in a day. Two slots per hour multiplied by 24 hours equals 48 characters.
    For example, the 1's in the following string indicate that work time for the day is 9 AM to 5 PM.
    000000000000000000111111111111111100000000000000
  • Maximum Length: 48
    The working time for Tuesday.
    The value is a 48 character string, which can either be 0 to indicate non-work time or 1 to indicate work time. Each character in this 48 character string corresponds to a 30 minute slot available in a day. Two slots per hour multiplied by 24 hours equals 48 characters.
    For example, the 1's in the following string indicate that work time for the day is 9 AM to 5 PM.
    000000000000000000111111111111111100000000000000
  • Maximum Length: 48
    The working time for Wednesday.
    The value is a 48 character string, which can either be 0 to indicate non-work time or 1 to indicate work time. Each character in this 48 character string corresponds to a 30 minute slot available in a day. Two slots per hour multiplied by 24 hours equals 48 characters.
    For example, the 1's in the following string indicate that work time for the day is 9 AM to 5 PM.
    000000000000000000111111111111111100000000000000
  • The number of hours in a year.
Nested Schema : calendarExceptions
Type: array
Defines exceptions to the specified calendar.
Show Source
Nested Schema : ApiEntityCalendarExceptionInput
Type: object
Title: ApiEntityCalendarExceptionInput
Show Source
  • Read Only: true
    Minimum Length: 0
    Maximum Length: 255
    Deprecated. As of 24.4.
    The unique code for the calendar.
  • The unique identifier for the calendar exception.
  • The unique identifier for the calendar.
  • The date that is marked as an exception. An exception is a change to the regularly scheduled time in the calendar.
  • Maximum Length: 60
    The name of the exception for the calendar.
  • Read Only: true
    Deprecated. As of 24.4.
    Date when the record was last updated.
  • Read Only: true
    Minimum Length: 0
    Maximum Length: 60
    Deprecated. As of 24.4.
    The user-specified identifier of a workspace.
  • Maximum Length: 4000
    Work time that is non-standard.
    The value is a 48 character string, which can either be 0 to indicate non-work time or 1 to indicate work time. Each character in this 48 character string corresponds to a 30 minute slot available in a day. Two slots per hour multiplied by 24 hours equals 48 characters.
    For example, the 1's in the following string indicate that work time for the day is 9 AM to 5 PM.
    000000000000000000111111111111111100000000000000
Examples

Back to Top

Response

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.
Back to Top