Delete a single subscription entry
DELETE
/subscriptions/{guid}
const url = 'https://example.com/subscriptions/2d8bb39b-8d34-48d4-b223-a0d01eb27d71';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/subscriptions/2d8bb39b-8d34-48d4-b223-a0d01eb27d71 \ --header 'Authorization: Bearer <token>'Deletes a single subscription specified in the path
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” guid
required
string format: guid
Example
2d8bb39b-8d34-48d4-b223-a0d01eb27d71Responses
Section titled “ Responses ”The deletion request has been received and will be processed
object
deletion_id
number format: integer
message
required
string
Example
{ "deletion_id": 25, "message": "Deletion request was received and will be processed"}object
deletion_id
number format: integer
message
required
string
Example
{ "deletion_id": 25, "message": "Deletion request was received and will be processed"}Unauthorized
object
code
required
string
message
required
string
Example
{ "code": 401, "message": "User not authorized"}object
code
required
string
message
required
string
Example
{ "code": 401, "message": "User not authorized"}Not found
object
code
required
string
message
required
string
Example
{ "code": 404, "message": "Resource not found"}object
code
required
string
message
required
string
Example
{ "code": 404, "message": "Resource not found"}Validation exception
object
code
required
string
message
required
string
Example
{ "code": 405, "message": "Input could not be validated"}object
code
required
string
message
required
string
Example
{ "code": 405, "message": "Input could not be validated"}