ServerMania logo

Edit Whitelisted IP

To edit a whitelisted IP, use the following request:

PUT /users/:user_id/user_white_lists/:id.xml
PUT /users/:user_id/user_white_lists/:id.json

XML Request Example

curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<user_white_list><ip>127.0.0.123</ip></user_white_list>' *http://test/users/8/user_white_lists/9.xml

JSON Request Example

curl -i -X PUT -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"user_white_list":{"ip":"109.123.105.129","description":"udr"}}' -u user:userpass http://test/users/8/user_white_lists/9.json