Delete an instance of opportunities

delete

/services/rest/connect/latest/opportunities/{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 an opportunity:

https://your_site_interface/services/rest/connect/version/opportunities/opportunity_id

Request URI example

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

Response example

The status 200 OK is returned. Then running this query on opportunity records:

https://mysite.example.com/services/rest/connect/v1.4/opportunities?fields=id,lookupName

returns the following:

{
  "items": [
    {
      "id": 2,
      "lookupName": "Systems Partners",
      "createdTime": "2015-12-01T20:46:49Z",
      "updatedTime": "2015-12-01T20:46:49Z",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/opportunities/2"
        }
      ]
    },
    {
      "id": 3,
      "lookupName": "PCS- 100 laptops",
      "createdTime": "2016-03-14T17:39:07Z",
      "updatedTime": "2016-03-14T17:52:02Z",
      "links": [
        {
          "rel": "canonical",
          "href": "https://mysite.example.com/services/rest/connect/v1.4/opportunities/3"
        }
      ]
    }
  ],
  "hasMore": false,
  "links": [
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/opportunities"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/opportunities",
      "mediaType": "application/schema+json"
    },
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/opportunities?fields=id,lookupName"
    }
  ]
}

Note:

Opportunity 1 no longer exists.