Set data quota
Authentication
An auth_token should be provided to authenticate a session.
To obtain an auth_token, see the /api/v1/authenticate POST request.
An auth_token should be provided to authenticate a session.
To obtain an auth_token, see the /api/v1/authenticate POST request.
Welcome to the new emnify developer docs! These pages replace the legacy Swagger-based site, which will be removed by end of January 2026.
Set a new data quota. You can set a new data quota for a device at any time. At an initial state, when no data quota is set, the device is denied from using data services. To top-up the data volume, you need to retrieve the remaining volume, increase it by the top-up volume, and set it as the new quota volume.
We have deprecated throttling as an action on quota exhaustion and the associated peak throughput parameter. These will be decommissioned as of December 9, 2024.**
The following parameters can be configured:
status (required) - The status of the quota:
ACTIVEEXHAUSTEDEXPIREDvolume - Remaining quota volume in MBexpiry_date (required) - Timestamp when the quota expires and the device is denied from using further data servicesauto_refill (default: 0) - Whether the quota should be refilled on a daily basis:
0: Disabled1: Enabledthreshold_percentage - The remaining quota percentage when the system generates a “Quota threshold reached” eventaction_on_exhaustion: Action executed after the quota is exhausted:
id (required) - Unique identifer of the action on quota exhaustion
1: Block2: Throttlepeak_throughput - The maximum bandwidth in octets per second after the device has been throttled.Events: The system generates a “Quota used up” event if the data quota is completely depleted. Then, the device is blocked from further consumption of data. The quota object is included in the event details.
The device can instantly use data services after successfully making this API call. You can set any timestamp with a future date. This allows you to create data packages as required (for example, 1 hour, 24 hours, 7 days, or any other timeframe).