2.2 Desktop Application

2.2.1 Resource Representations

DesktopAppConfig


{
   "enabled": boolean,
   "allow_cached_password": boolean,
   "sync_interval_mins": integer,
   "max_file_size_mbs": integer    
}

2.2.2 Get Settings

To get the Desktop Application settings, use the desktop_application related link (href: “/admin/desktop_application") from the root admin resource (href: "/admin"):


[Request]
> curl -k -u admin:novell https://amethyst.provo.novell.com:8443/rest/admin/desktop_application

[Response]
{
   "enabled":true,
   "href":"/admin/desktop_application",
   "allow_cached_password":true,
   "sync_interval_mins":15,
   "max_file_size_mbs":50,
} 

2.2.3 Modify Settings

To update the Web Application settings, send a PUT request to the web_application related link (href: "/admin/desktop_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/desktop_application /
  -X PUT -H "Content-Type: application/json" -d '{"max_file_size_mbs":1024}'

[Response]
{
   "enabled":true,
   "href":"/admin/desktop_application",
   "allow_cached_password":true,
   "sync_interval_mins":15,
   "max_file_size_mbs":1024
}