Delete an instance of serviceProducts

delete

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

https://your_site_interface/services/rest/connect/version/serviceProducts/
service_product_id

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/serviceProducts/61

Response example

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

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

returns the following:

{
    "items": [
        {
            "tableName": "serviceProducts",
            "count": 5,
            "columnNames": [
                "id",
                "name"
            ],
            "rows": [
                [
                    "60",
                    "ISFJ Series"
                ],
                [
                    "62",
                    "ISFJ 1550"
                ],
                [
                    "63",
                    "LM 800"
                ],
                [
                    "64",
                    "Cats"
                ],
                [
                    "65",
                    "Cats"
                ],
            ]
        }
    ],
    "links": [
        {
            "rel": "self",
            "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
             query=select%20id,name%20from%20serviceProducts%20where%20id%3E=60"
        },
        {
            "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:

Service product 61 no longer exists.