API7 Docs

Unsubscribe an API product for the given application

DELETE /api/subscriptions/{subscription_id}

DELETE /api/subscriptions/{subscription_id}

Interactive request editor loads with JavaScript.

Authorization

BearerAuth DeveloperIDHeader
AuthorizationBearer <token>

In: header

X-Portal-Developer-ID<token>

In: header

Path Parameters

subscription_id*string

The object ID.

Match^[a-zA-Z0-9-_.]+$
Length1 <= length <= 256

Response Body

application/json

application/json

application/json

curl -X DELETE "$API_BASE_URL/api/subscriptions/bd58fce2-b6cc-4d2d-a53c-6ce11b19c101"

The resource was deleted successfully.

Complete operation details and schema variants

DELETE /api/subscriptions/{subscription_id}

Unsubscribe an API product for the given application

Parameters

  • subscription_id (path, string, required):

Responses

  • 204: The resource was deleted successfully.
  • 400: Bad request.
  • status (integer, required): The HTTP status code of the error response.
  • message (string, required): The error message.
  • 401: Unauthorized. Response fields (application/json): identical to DELETE /api/subscriptions/{subscription_id}, response 400 above.
  • 404: Resource not found. Response fields (application/json): identical to DELETE /api/subscriptions/{subscription_id}, response 400 above.
  • 500: Internal server error.

cURL

curl -X DELETE '$API_BASE_URL/api/subscriptions/{subscription_id}'