Update a holiday

patch

/services/rest/connect/v1.4/holidays/{id}

Request

Path Parameters
Body ()
The list of holidays in your organization.
Root Schema : holidays
Type: object
The list of holidays in your organization.
Show Source
Nested Schema : namedIDs-holidays-adminVisibleInterfaces
Type: object
The named ID that can be included in a list.
Show Source
  • Minimum Value: 1
    Maximum Value: 9223372036854776000
    The unique identifier of the object. This is the key for the list entry.
  • Maximum Length: 255
    The name used to look up the object.
Back to Top

Response

Default Response

Back to Top

Examples

Use the PATCH operation with the following syntax to partially update a holiday object:

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

Include the data to be updated in the request body. Only the fields present in the request JSON data are updated. All other fields remain the same.

Request URI example

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

Request body example

{
"name": "Labour Day"
}

Response example

The status 200 OK is returned. Then getting the data for holiday 5 returns the following:

{
  "id": 5,
  "lookupName": "Labour Day",
  "adminVisibleInterfaces": {
    "links": [
      {
        "rel": "self",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/5/adminVisibleInterfaces"
      }
    ]
  },
  "displayOrder": 3,
  "holidayDate": "2016-09-05",
  "name": "Labour Day",

...

}

Note:

Labour Day is now spelled correctly for Canada.
Back to Top