Delete an instance of salesTerritories

delete

/services/rest/connect/latest/salesTerritories/{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 sales territory:

https://your_site_interface/services/rest/connect/version/salesTerritories/territory_id

Request URI example

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

Response example

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

https://mysite.example.com/services/rest/connect/v1.4/queryResults?
query=select id,lookupName from salesTerritories where id>8

returns the following:

{
  "items": [
    {
      "tableName": "salesTerritories",
      "count": 3,
      "columnNames": [
        "id",
        "lookupName"
      ],
      "rows": [
        [
          "9",
          "Canada"
        ],
        [
          "10",
          "Ontario"
        ],
        [
          "12",
          "Quebec"
        ]
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
       query=select%20id,lookupName%20from%20salesTerritories%20where%20id%3E8"
    },
    {
      "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:

The Texas sales territory no longer exists.