/v1/api/ipLists/{id}/contents (PUT) - BlueCat DNS Edge

DNS Edge User Guide

Locale
English
Product name
BlueCat DNS Edge

Updates the IP list contents by ID.

PUT https://api-<DNS.Edge.URL>/v1/api/ipLists/{id}/contents
Authorization: Bearer token
Content-Type: application/json

    [
      "192.168.0.1/32"
      "192.168.0.0/24"
    ]

OR

PUT https://api-<DNS.Edge.URL>/v1/api/ipLists?/ipListsId/contents
Authorization: Bearer token
Content-Type: text/plain

192.168.0.1/32\n
192.168.0.0/24

Parameters

Name Description Type Required
id The ID of the IP list. String Required

Successful response

200

{
   "validCount": 1,
   "duplicateCount": 2,
   "invalidCount": 3
}
Possible error codes
  • 401 Unauthorized - Missing or invalid token
  • 403 Forbidden - You are not authorized to perform this action
  • 404 IP List was not found
  • 500 Internal Server Error