go-unifi

Delete Voucher

Remove a specific Hotspot voucher.

DELETE
/v1/sites/{siteId}/hotspot/vouchers/{voucherId}

Remove a specific Hotspot voucher.

X-Api-Key<token>

UniFi API key. Create one under Control Plane → Admins & Users → your admin → Create API Key (requires controller 9.0.114+).

In: header

Path Parameters

voucherId*string
siteId*string

Response Body

application/json

curl -X DELETE "https://example.com/v1/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08/hotspot/vouchers/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "vouchersDeleted": 0}