Remove a single subscription by this user
DELETE
/subscriptions/{name}Authorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
namestringrequired`name` of the desired subscription
Responses
200Subscription deleted
validbooleanrequiredtracestring | nullrequireddeprecatedAlways null. Deprecated; may be removed in a future release.
401Missing authentication
messagestringrequirederrorsopenApiErrorItem[]requiredmin items 1
Show propertiesHide properties
Array of
openApiErrorItemopenApiErrorItemtracestring | nullrequireddeprecatedAlways null. Deprecated; may be removed in a future release.
403Invalid authorization
messagestringrequirederrorsopenApiErrorItem[]requiredmin items 1
Show propertiesHide properties
Array of
openApiErrorItemopenApiErrorItemtracestring | nullrequireddeprecatedAlways null. Deprecated; may be removed in a future release.
404Subscription not found
messagestringrequiredtracestring | nullrequireddeprecatedAlways null. Deprecated; may be removed in a future release.
500Internal server error
messagestringrequiredtracestring | nullrequireddeprecatedAlways null. Deprecated; may be removed in a future release.
Request
curl -X DELETE "/subscriptions/string" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/subscriptions/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"valid": true,
"trace": null
}{
"message": "request.headers should have required property 'Authorization'",
"errors": [
null
],
"trace": null
}{
"message": "user is missing required permission",
"errors": [
null
],
"trace": null
}{
"message": "object 'object.name' not found",
"trace": null
}{
"message": "Internal Server Error",
"trace": null
}