Create an instance of holidays

post

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

Request

Body ()
Contains information on holidays used by the system.
Root Schema : holidays
Type: object
Contains information on holidays used by the system.
Show Source
Nested Schema : namedIDs-holidays-adminVisibleInterfaces
Type: object
Named ID that can be included in a list
Show Source
  • Minimum Value: 1
    Maximum Value: 9.223372036854776E18
    ID value. This is the key for the list entry.
  • Maximum Length: 255
    Name used to lookup this object

Response

Default Response

Body ()
Contains information on holidays used by the system.
Root Schema : holidays
Type: object
Contains information on holidays used by the system.
Show Source
Nested Schema : namedIDs-holidays-adminVisibleInterfaces
Type: object
Named ID that can be included in a list
Show Source
  • Minimum Value: 1
    Maximum Value: 9.223372036854776E18
    ID value. This is the key for the list entry.
  • Maximum Length: 255
    Name used to lookup this object

Examples

Use POST with the following syntax to create a new holiday object:

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

Request URI example

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

Request body example

{
"holidayDate": "2016-12-25",
"name": "Christmas"
}

Note:

The name and holidayDate fields are required for holidays.

Response body example

{
  "id": 7,
  "lookupName": "Christmas",
  "adminVisibleInterfaces": {
    "links": [
      {
        "rel": "self",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/7/adminVisibleInterfaces"
      }
    ]
  },
  "displayOrder": 6,
  "holidayDate": "2016-12-25",
  "name": "Christmas",
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/7"
    },
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/holidays/7"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/holidays",
      "mediaType": "application/schema+json"
    }
  ]
}