<back to all web services

UpdatePermissionsMessage

The following routes are available for this service:
All Verbs/RestApi/Sitefinity/Analytics/UpdatePermissions
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class UpdatePermissionsMessage
    {
        public ArrayList<DashboardPermission> DashboardIds = null;
        public String Username = null;
        public UUID SiteId = null;
        
        public ArrayList<DashboardPermission> getDashboardIds() { return DashboardIds; }
        public UpdatePermissionsMessage setDashboardIds(ArrayList<DashboardPermission> value) { this.DashboardIds = value; return this; }
        public String getUsername() { return Username; }
        public UpdatePermissionsMessage setUsername(String value) { this.Username = value; return this; }
        public UUID getSiteId() { return SiteId; }
        public UpdatePermissionsMessage setSiteId(UUID value) { this.SiteId = value; return this; }
    }

    @DataContract
    public static class DashboardPermission
    {
        @DataMember
        public UUID DashboardId = null;

        @DataMember
        public Boolean CanView = null;
        
        public UUID getDashboardId() { return DashboardId; }
        public DashboardPermission setDashboardId(UUID value) { this.DashboardId = value; return this; }
        public Boolean isCanView() { return CanView; }
        public DashboardPermission setCanView(Boolean value) { this.CanView = value; return this; }
    }

    public static class UpdatePermissionsData
    {
        
    }

}

Java UpdatePermissionsMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RestApi/Sitefinity/Analytics/UpdatePermissions HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	DashboardIds: 
	[
		{
			CanView: False
		}
	],
	Username: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}