Trendsic Platform Service

<back to all web services

AgentDeviceRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET, DELETE, OPTIONS/v1/AgentDevice/{DeviceId}
POST, OPTIONS/v1/AgentDevice
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class AgentDeviceRequest
    {
        public AgentDevice AgentDevice = null;
        public String DeviceId = null;
        
        public AgentDevice getAgentDevice() { return AgentDevice; }
        public AgentDeviceRequest setAgentDevice(AgentDevice value) { this.AgentDevice = value; return this; }
        public String getDeviceId() { return DeviceId; }
        public AgentDeviceRequest setDeviceId(String value) { this.DeviceId = value; return this; }
    }

    public static class AgentDevice
    {
        public Integer AgentDeviceId = null;
        public UUID UserId = null;
        public String DeviceId = null;
        public String Model = null;
        public String Platform = null;
        public String UUID = null;
        
        public Integer getAgentDeviceId() { return AgentDeviceId; }
        public AgentDevice setAgentDeviceId(Integer value) { this.AgentDeviceId = value; return this; }
        public UUID getUserId() { return UserId; }
        public AgentDevice setUserId(UUID value) { this.UserId = value; return this; }
        public String getDeviceId() { return DeviceId; }
        public AgentDevice setDeviceId(String value) { this.DeviceId = value; return this; }
        public String getModel() { return Model; }
        public AgentDevice setModel(String value) { this.Model = value; return this; }
        public String getPlatform() { return Platform; }
        public AgentDevice setPlatform(String value) { this.Platform = value; return this; }
        public String getUuid() { return UUID; }
        public AgentDevice setUuid(String value) { this.UUID = value; return this; }
    }

    public static class AgentDeviceResponse
    {
        public ResponseStatus ResponseStatus = null;
        public AgentDevice AgentDevice = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AgentDeviceResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public AgentDevice getAgentDevice() { return AgentDevice; }
        public AgentDeviceResponse setAgentDevice(AgentDevice value) { this.AgentDevice = value; return this; }
    }

}

Java AgentDeviceRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /v1/AgentDevice HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"AgentDevice":{"AgentDeviceId":0,"UserId":"00000000000000000000000000000000","DeviceId":"String","Model":"String","Platform":"String","UUID":"String"},"DeviceId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AgentDevice":{"AgentDeviceId":0,"UserId":"00000000000000000000000000000000","DeviceId":"String","Model":"String","Platform":"String","UUID":"String"}}