cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use the API to set custom nameservers

Hi,

I'm trying to use the API to set custom nameservers, e.g.:

 

curl -X PATCH "https://api.ote-godaddy.com/v1/domains/12300000000000.com" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: sso-key <mykeys>" -d "{ \"nameServers\": [\"dn1.test.com\",\"dn2.test.net\"]}"

No matter how I try, I get something like this:

{"code":"INVALID_BODY","fields":[{"code":"FAILED_NAME_SERVER_VALIDATION","message":"Failed to update nameservers","path":"body.nameServers"}],"message":"Request body doesn't fulfill schema, see details in `fields`"}


So what's the proper way to do this ?
 
Thanks,
Greetings,
    Sorin (sorincalex@gmail.com)