Child pages
  • Edit Resolver

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Use the following method to edit a resolver:

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

XML Request example

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

JSON Request example

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

You can edit the address and network_id parameters.