Delete a standard content
delete
/services/rest/connect/v1.4/standardContents/{id}
Request
Path Parameters
-
id(required): integer
The unique identifier of the standard content object.
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 standard content (standard text) object:
https://your_site_interface/services/rest/connect/version/standardContents/content_id
Request URI example
https://mysite.example.com/services/rest/connect/v1.4/standardContents/5
Response example
The status 200
OK
is returned. Then running the following query:
https://mysite.example.com/services/rest/connect/v1.4/standardContents?fields=id&orderBy=id
returns the following:
{
"items": [
{
"id": 1,
"lookupName": "Thank you",
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/standardContents/1"
}
]
},
{
"id": 2,
"lookupName": "Warranty",
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/standardContents/2"
}
]
},
{
"id": 3,
"lookupName": "Customer Greeting",
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/standardContents/3"
}
]
},
{
"id": 4,
"lookupName": "Return Address",
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/standardContents/4"
}
]
},
{
"id": 6,
"lookupName": "Random Text",
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/standardContents/6"
}
]
}
],
"hasMore": false,
"links": [
{
"rel": "canonical",
"href": "https://mysite.example.com/services/rest/connect/v1.4/standardContents"
},
{
"rel": "describedby",
"href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/standardContents",
"mediaType": "application/schema+json"
},
{
"rel": "self",
"href": "https://mysite.example.com/services/rest/connect/v1.4/standardContents
?fields=id&orderBy=id"
}
]
}
Note:
Standard content object 5 no longer exists.