View a Calendar by Code and Workspace ID

get

/api/restapi/calendar/workspace/{workspaceId}/code/{calendarCode}

This endpoint returns calendars that meet the following requirements:
  • The object is associated with a workspace with an ID value that matches the value of the {workspaceId} path parameter.
  • The object has a code that matches the value of the {calendarCode} path parameter.
Calendars define the workdays, work hours, holidays, and exceptions available to projects, resources, and roles.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : ApiEntityCalendar
Type: object
Title: ApiEntityCalendar
Show Source
  • Allowed Values: [ "OWNED", "INHERITED" ]
    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.
  • 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 : ApiEntityCalendarException
Type: object
Title: ApiEntityCalendarException
Show Source
  • Minimum Length: 0
    Maximum Length: 255
    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.
  • Date when the record was last updated.
  • Minimum Length: 0
    Maximum Length: 60
    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

404 Response

The requested calendar does not exist, or you do not have access to it.
Back to Top