Delete an event subscription
delete
/services/rest/connect/v1.4/eventSubscriptions/{id}
Request
Path Parameters
-
id(required): integer
The unique identifier of the event subscription.
Response
Default Response
Root Schema : No content
Type:
nullTitle:
No contentNo content returned on delete
Examples
Use DELETE with the following syntax to delete an event subscription:
https://your_site_interface/services/rest/connect/version/eventSubscriptions/event_subscription_idRequest URI example
https://mysite.example.com/services/rest/connect/v1.4/eventSubscriptions/10003Response example
The status 200
OK is returned. Then trying to retrieve that event subscription
record:
https://mysite.example.com/services/rest/connect/v1.4/eventSubscriptions/10003returns the following error:
{
"type": "https://mysite.example.com/services/rest/connect/exceptions/OSC-CREST-00013",
"title": "Unrecognized resource",
"status": 404,
"detail": "Resource with id 10003 not found",
"instance": "https://mysite.example.com/services/rest/connect/v1.4/eventSubscriptions/10003",
"o:errorCode": "OSC-CREST-00013"
}Note:
Event subscription 10003 no longer exists.