Skip to content

Update Domain List

This endpoint updates Domain List.

POST https://adelion.com/api/domainlist/update
ParameterTypeDescriptionRequirement
IdintDomain List ID.required
NamestringDomain List’s name.optional
GlobalintApply list globally. 1 - On, 0 - Off.optional
ListTextstringList of domains separated by new line.optional
JSON payload example
{
"DomainList": {
"Id": 1,
"Name": "Domain List 1",
"Global": 1,
"ListText": "domain1.com\ndomain2.com\ndomain3.com"
}
}
Success JSON
{
"Status": "Ok",
"DomainList": {
"Id": 1,
"TeamId": 1,
"Name": "Domain List 1",
"VastTags": [
9,
10
],
"RtbEps": [
1,
2
],
"DspRtbEps": [
3,
4
],
"Campaigns": [
5,
6
],
"DspPopFeeds": [
7,
8
],
"DomainCount": 16063,
"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.