Trendsic Platform Service

<back to all web services

DashboardLocationGrantRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/dashboard/locationgrants/{UserId}
POST,DELETE,OPTIONS/v1/dashboard/locationgrants/{UserId}/{LocationId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class DashboardLocationGrantRequest
    {
        public UUID UserId = null;
        public UUID LocationId = null;
        
        public UUID getUserId() { return UserId; }
        public DashboardLocationGrantRequest setUserId(UUID value) { this.UserId = value; return this; }
        public UUID getLocationId() { return LocationId; }
        public DashboardLocationGrantRequest setLocationId(UUID value) { this.LocationId = value; return this; }
    }

    public static class DashboardLocationsResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<DashboardLocationOption> Locations = new ArrayList<DashboardLocationOption>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DashboardLocationsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<DashboardLocationOption> getLocations() { return Locations; }
        public DashboardLocationsResponse setLocations(ArrayList<DashboardLocationOption> value) { this.Locations = value; return this; }
    }

    public static class DashboardLocationOption
    {
        public UUID Id = null;
        public String Name = null;
        
        public UUID getId() { return Id; }
        public DashboardLocationOption setId(UUID value) { this.Id = value; return this; }
        public String getName() { return Name; }
        public DashboardLocationOption setName(String value) { this.Name = value; return this; }
    }

}

Java DashboardLocationGrantRequest DTOs

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

HTTP + OTHER

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

POST /v1/dashboard/locationgrants/{UserId}/{LocationId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"UserId":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Locations":[{"Id":"00000000000000000000000000000000","Name":"String"}]}