{
"enabled": boolean,
"allow_guest_access": boolean,
"read_only_guest": boolean,
"allow_open_id": boolean,
"allow_downloads": boolean
}
To get the Web Application settings, use the web_application related link (href: “/admin/web_application") from the root admin resource (href: "/admin"):
[Request]
> curl -k -u admin:novell https://amethyst.provo.novell.com:8443/rest/admin/web_application
[Response]
{
"enabled":true,
"href":"/admin/web_application",
"allow_guest_access":true,
"read_only_guest":true,
"allow_open_id":true,
"allow_downloads":true
}
To update the Web Application settings, send a PUT request to the web_application related link (href: "/admin/web_application") from the root admin resource (href: "/admin"). Only the attributes that are included in the request body are updated:
[Request]
> curl -k -u admin:novell https://amethyst.provo.novell.com:8443/rest/admin/web_application /
-X PUT -H "Content-Type: application/json" -d '{"allow_guest_access":false}'
[Response]
{
"enabled":true,
"href":"/admin/web_application",
"allow_guest_access":false,
"read_only_guest":true,
"allow_open_id":true,
"allow_downloads":true
}