Delete a country

delete

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

Request

Path Parameters
Back to Top

Response

Default Response

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

Examples

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

https://your_site_interface/services/rest/connect/version/countries/country_id

Request URI example

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

Response example

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

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

returns the following:

{
  "items": [
    {
      "tableName": "countries",
      "count": 7,
      "columnNames": [
        "id",
        "name"
      ],
      "rows": [
        [
          "1",
          "United States (US)"
        ],
        [
          "2",
          "Canada"
        ],
        [
          "3",
          "United Kingdom"
        ],
        [
          "4",
          "France"
        ],
        [
          "5",
          "Duchy of Grand Fenwick"
        ],
        [
          "6",
          "Palau"
        ],
        [
          "8",
          "Mexico"
        ]
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
       query=select%20id,name%20from%20countries"
    },
    {
      "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:

Country 7 (Antarctica) no longer exists.
Back to Top