Skip to content

Update IP List

This endpoint updates IP List.

POST https://adelion.com/api/iplist/update
ParameterTypeDescriptionRequirement
IdintIP List ID.required
NamestringIP List’s name.optional
GlobalintApply list globally. 1 - On, 0 - Off.optional
JSON payload example
{
"IpList": {
"Id": 1,
"Name": "IP List 1",
"Global": 1,
"ListText": "127.0.0.1\n127.0.0.2\n127.0.0.3"
}
}
Success JSON
{
"Status": "Ok",
"IpList": {
"Id": 1,
"TeamId": 1,
"Name": "IP List 1",
"VastTags": [
7,
8
],
"RtbEps": [
1,
2
],
"DspRtbEps": [
3,
4
],
"DspPopFeeds": [
5,
6
],
"IpCount": 16063,
"IpRangesCount": 9895,
"Global": 1,
"Status": 0,
"StatusString": "Active"
}
}
Error JSON
{
"Status": "Error",
"Error": "[error description]"
}
CodeStatusMeaning
400Bad RequestYou sent a body that isn’t JSON.
401UnauthorizedYour access token is invalid.
406Not AcceptableOne or more JSON values are missing or malformed, or the requested object was not found.
500Internal Server ErrorThe server encountered a problem. Try again later.