Child pages
  • Edit Resolver
Skip to end of metadata
Go to start of metadata

Use the following method to edit a resolver:

PUT /settings/nameservers/:id.xml
PUT /settings/nameservers/:id.json

XML Request example

curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<nameserver><adress>128.123.123.123</address><network_id>3</network_id></nameserver>' --url http://onapp.test/settings/nameservers/:id.xml

JSON Request example

curl -i -X PUT -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"nameserver":{"address":"129.123.123.123","network_id":"6"}}' --url http://onapp.test/settings/nameservers/:id.json

You can edit the address and network_id parameters.

  • No labels