Environment
Onomondo app: Network Lists
Onomondo API: PATCH Update a network-whitelist
Question
How to update my Networks Lists?
How can I update Networks Lists?
Answer
Edit the list(s) in the Onomondo app.
Go to the Network Lists tab.
Find the relevant network list(s).
Click 'Edit' on the right side the menu.
Click 'Select Networks' on the right side the menu.
Select the network(s) you want to include.
Click 'Save Selection' in the bottom right of the menu.
Click 'Save Changes' at the top right.
Workaround
Edit the list(s) using the Onomondo API.
Send a PATCH request to
https://api.onomondo.com/network-whitelists/{{whitelist-name}}
containing:name of the list,
tags,
mcc
andmnc
codes of the networks to be included in the list.
Example body of the request:
{
"name": "test",
"tags": [],
"networks": [
{
"mcc": "242",
"mnc": "01"
},
{
"mcc": "240",
"mnc": "02"
},
{
"mcc": "238",
"mnc": "20"
}
]
}
Generally, it is much easier and more convenient to update lists via the Network Marketplace. The API method requires you to have a prepared array of correct MCC (Mobile Country Code) and MNC (Mobile Network Code).