DELETE
/
subscriptions
/
{id}
/
versions
/
{versionId}
curl --request DELETE \
  --url https://api.alguna.io/subscriptions/{id}/versions/{versionId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "subver_0000000000000001"
}

Deletes a subscription version that is in the draft state. Once a version is published, it cannot be deleted.

Path Parameters

id
string
required

The unique identifier of the subscription

versionId
string
required

The unique identifier of the subscription version to delete

Response

{
  "id": "subver_0000000000000001"
}
id
string

Unique identifier of the deleted subscription version