Delete an instance of holidays

delete

/services/rest/connect/latest/holidays/{id}

Request

Path Parameters

Response

Default Response

Body ()
Root Schema : No content
Type: null
Title: No content
No content returned on delete

Examples

Use DELETE with the following syntax to delete a holiday object:

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

Request URI example

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

Response example

The status 200 OK is returned. Then running this ROQL tabular query on holiday records:

https://mysite.example.com/services/rest/connect/v1.4/queryResults?
query=select id,name from holidays

returns the following:

{
  "items": [
    {
      "tableName": "holidays",
      "count": 5,
      "columnNames": [
        "id",
        "name"
      ],
      "rows": [
        [
          "1",
          "New Year's Day"
        ],
        [
          "2",
          "Thanksgiving Day"
        ],
        [
          "4",
          "Memorial Day"
        ],
        [
          "5",
          "Labor Day"
        ],
        [
          "6",
          "Independence Day"
        ]
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
       query=select%20id,name%20from%20holidays"
    },
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/queryResults",
      "mediaType": "application/schema+json"
    }
  ]
}

Note:

Holiday 3 no longer exists.