Set Endpoint Data Quota
A 3-step recipe with emnify. We can help you get access.
Recipe · 3 steps
Set Endpoint Data Quota
with emnify
Read the existing data quota and assign a new one to an endpoint.
- Exchange the application token for an auth_token used as a Bearer token.
- Read the endpoint's current data quota to capture the existing volume.
- Set a new data quota with ACTIVE status, the supplied volume and expiry, and Block on exhaustion (action id 1).
What you'll need to have ready
- applicationToken: emnify application token used to obtain an auth_token.
- endpointId: The ID of the endpoint to set the data quota on.
- volume: Remaining quota volume in MB.
- expiryDate: Timestamp when the quota expires (ISO 8601).
For your developer
Arazzo workflow emnify:set-endpoint-data-quota, 3 operations: authenticate → endpoint-quota-data-by-endpoint-id-get → endpoint-quota-data-by-endpoint-id-post. Specs on APIs.io.