Skip to content
Get started

Operation to delete a subscription

DELETE/connectivityinsights/subscriptions/{subscriptionId}

Delete a given subscription by ID

Path ParametersExpand Collapse
subscriptionId: string

When this information is contained within an event notification, it SHALL be referred to as subscriptionId as per the Commonalities Event Notification Model.

Header ParametersExpand Collapse
"x-correlator": optional string
ReturnsExpand Collapse
subscriptionId: optional string

When this information is contained within an event notification, it SHALL be referred to as subscriptionId as per the Commonalities Event Notification Model.

Operation to delete a subscription

curl https://api.example.com/camara/connectivityinsights/subscriptions/$SUBSCRIPTION_ID \
    -X DELETE \
    -H "Authorization: Bearer $CAMARA_BEARER_TOKEN"
{
  "subscriptionId": "qs15-h556-rt89-1298"
}
{
  "status": 400,
  "code": "INVALID_ARGUMENT",
  "message": "Client specified an invalid argument, request body or query param."
}
{
  "status": 400,
  "code": "INVALID_ARGUMENT",
  "message": "Expected property is missing: subscriptionId"
}
{
  "status": 401,
  "code": "UNAUTHENTICATED",
  "message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}
{
  "status": 403,
  "code": "PERMISSION_DENIED",
  "message": "Client does not have sufficient permissions to perform this action."
}
{
  "status": 404,
  "code": "NOT_FOUND",
  "message": "The specified resource is not found."
}
Returns Examples
{
  "subscriptionId": "qs15-h556-rt89-1298"
}
{
  "status": 400,
  "code": "INVALID_ARGUMENT",
  "message": "Client specified an invalid argument, request body or query param."
}
{
  "status": 400,
  "code": "INVALID_ARGUMENT",
  "message": "Expected property is missing: subscriptionId"
}
{
  "status": 401,
  "code": "UNAUTHENTICATED",
  "message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}
{
  "status": 403,
  "code": "PERMISSION_DENIED",
  "message": "Client does not have sufficient permissions to perform this action."
}
{
  "status": 404,
  "code": "NOT_FOUND",
  "message": "The specified resource is not found."
}