Delete an instance of salesProducts

delete

/services/rest/connect/latest/salesProducts/{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 product:

https://your_site_interface/services/rest/connect/version/salesProducts/product_id

Request URI example

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

Response example

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

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

returns the following:

{
  "items": [
    {
      "tableName": "salesProducts",
      "count": 5,
      "columnNames": [
        "id",
        "lookupName"
      ],
      "rows": [
        [
          "1",
          "Mundo"
        ],
        [
          "3",
          "Conversa"
        ],
        [
          "4",
          "Blizzard"
        ],
        [
          "5",
          "Redi-Haul"
        ],
        [
          "6",
          "Dogs"
        ]
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/
       queryResults?query=select%20id,lookupName%20from%20salesProducts"
    },
    {
      "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:

Sales product 2 no longer exists.