Delete a service category
delete
/services/rest/connect/v1.4/serviceCategories/{id}
Request
Path Parameters
-
id(required): integer
The unique identifier of the service category.
Response
Default Response
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 category:
https://your_site_interface/services/rest/connect/version/serviceCategories/
service_category_id
Request URI example
https://mysite.example.com/services/rest/connect/v1.4/serviceCategories/38
Response example
The status 200
OK
is returned. Then running this ROQL tabular query on service
category records:
https://mysite.example.com/services/rest/connect/v1.4/
queryResults?query=select id from serviceCategories where id<40
returns the following:
{
"items": [
{
"tableName": "serviceCategories",
"count": 10,
"columnNames": [
"id"
],
"rows": [
[
"29"
],
[
"30"
],
[
"31"
],
[
"32"
],
[
"33"
],
[
"34"
],
[
"35"
],
[
"36"
],
[
"37"
],
[
"39"
]
]
}
],
"links": [
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
query=select%20id%20from%20serviceCategories%20where%20id%3C40"
},
{
"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 category 38 no longer exists.