Create a domain list
POST https://api-<BlueCat.edge.url>/v1/api/list/dns
Authorization: Bearer authorization token
Content-type: application/JSON
{
"name": "new domain list name",
"description": "new domain list description",
"sourceType":"dynamic" or "user"
},
Note: If the sourceType for a domain list is "user",
you don't configure dynamicOptions. The Dynamic Option information only needs to be
configured when the sourceType is dynamic.
Successful response
200 OK
{
"id": "<domain-list-id>",
"name": "<domain-list-name>",
"description": "<domain-list-description>",
"domainCount": <domain-count>,
"sourceType":"<user | dynamic>"
}
Possible error codes
- UNAUTHORIZED - Missing or invalid token
- FORBIDDEN - You are not authorized to perform this action
- INTERNAL SERVER ERROR