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

DNS Edge API Guide

prodname
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
}

Response on unsuccessful authorization

401 Unauthorized
Content-Type: application/JSON
{"code": "UNAUTHORIZED", "brief": "You are not authorized to perform this action"}
Possible error codes
  • 404 IP List was not found
  • 500 Internal Server Error