Deletes a subscription for a user in a specific gym.
| Permission | Description |
|---|---|
gym_subscriptions.delete | Delete subscriptions for your own gyms |
gym_subscriptions.delete_any | Delete subscriptions for any gym |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int | Yes | ID of the gym | 123 |
| subscription-id | int | Yes | ID of the subscription | 456 |
DELETE /api/v1/gyms/123/subscriptions/manage/456
Authorization: Bearer {token}
No content is returned when the subscription is successfully deleted.
| Status | Description | Reference |
|---|---|---|
| 404 | Not found (invalid gym or subscription) | |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |