2

Error when POSTing to rewrites via API

I can access rewrites and delete rewrites via the API but when I try to POST any data I get an error.

 

The request:

curl -H "X-Api-Key: XXX" -H "Content-Type: application/json" -d '{"name":"testdomain.com","content":"10.0.0.1"}' "https://api.nextdns.io/profiles/XXX/rewrites"

 

The response:

{"errors":[{"code":"internalServerError"}]}

1 reply

null
    • David_Rudie
    • 1 yr ago
    • Reported - view

    I was able to do this programatically not using curl and it worked.

    While I'm here, does this endpoint support using a single array? Currently I'm adding one at a time which is highly inefficient.

Content aside

  • 2 Likes
  • 1 yr agoLast active
  • 1Replies
  • 130Views
  • 3 Following