Retrieve collection of holidays

get

/services/rest/connect/v1.4/holidays

Request

Supported Media Types
Query Parameters
  • Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name
  • The requested page size, which limits the number of elements the collection should max return
  • The offset of the page. By default, offset is 0, which means first page will be returned.
  • Returns the count of elements as the given order. The value is a comma delimited string. Each token in the string is the name of the field, optionally followed by asc or desc.
  • Query parameter that allows searching by providing ROQL WHERE clause filtering
  • Indicates whether or not to calculate the totalResults property. By default, totalResults is not calculated.

Response

Supported Media Types

Default Response

Body ()
Collection of holidays
Root Schema : holidays-collection
Type: object
Collection of holidays
Show Source

Examples

Use GET with the following syntax to list all holidays:

https://your_site_interface/services/rest/connect/version/holidays

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/holidays

Response body example

{
  "items": [
    {
      "id": 1,
      "lookupName": "New Year's Day",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/1"
        }
      ]
    },
    {
      "id": 2,
      "lookupName": "Thanksgiving Day",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/2"
        }
      ]
    },
    {
      "id": 4,
      "lookupName": "Memorial Day",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/4"
        }
      ]
    },
    {
      "id": 5,
      "lookupName": "Labor Day",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/5"
        }
      ]
    },
    {
      "id": 6,
      "lookupName": "Independence Day",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/6"
        }
      ]
    }
  ],
  "hasMore": false,
  "links": [
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/holidays",
      "mediaType": "application/schema+json"
    },
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays"
    }
  ]
}