Environment
Onomondo app: individual SIM page
Onomondo API: PATCH Update SIM
Question
How to update data limit on a SIM?
'Your device is blocked because it has reached the data limit for the period'. What can be done in this situation?
Answer
Update data limits in the Onomondo app.
Find SIM in the SIMs tab.
Click the 'Edit' icon located on the left-hand side.
Scroll down to the 'Data Limits' section.
Adjust the settings as needed, including the total data limit and alert threshold.
Click 'Save'.
Workaround
Use the API.
Use your API Key or create a new one.
Prepare PATCH Update SIM request, according to the instructions.
Update the values in the "data_limit" object accordingly.
Send the request to
https://api.onomondo.com/sims/{{sim_id}}
.
Example:
curl --location -g --request PATCH 'https://api.onomondo.com/sims/{{sim_id}}' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"data_limit": {
"total": 1000000,
"type": "hourly",
"alert_threshold": 800000
}
}'
Free Trial customers cannot update data limits, as they are capped at 50 MB per SIM.
β