Trendsic Platform Service

<back to all web services

AgentHistoryRequest

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

public class dtos
{

    public static class AgentHistoryRequest
    {
        public ArrayList<AgentHistory> AgentHistory = new ArrayList<AgentHistory>();
        
        public ArrayList<AgentHistory> getAgentHistory() { return AgentHistory; }
        public AgentHistoryRequest setAgentHistory(ArrayList<AgentHistory> value) { this.AgentHistory = value; return this; }
    }

    public static class AgentHistory
    {
        public Integer AgentHistoryId = null;
        public Integer SubAgentId = null;
        public Integer EventId = null;
        public Integer AgentId = null;
        public Date EventDate = null;
        public Date DateCreated = null;
        public String Note = null;
        
        public Integer getAgentHistoryId() { return AgentHistoryId; }
        public AgentHistory setAgentHistoryId(Integer value) { this.AgentHistoryId = value; return this; }
        public Integer getSubAgentId() { return SubAgentId; }
        public AgentHistory setSubAgentId(Integer value) { this.SubAgentId = value; return this; }
        public Integer getEventId() { return EventId; }
        public AgentHistory setEventId(Integer value) { this.EventId = value; return this; }
        public Integer getAgentId() { return AgentId; }
        public AgentHistory setAgentId(Integer value) { this.AgentId = value; return this; }
        public Date getEventDate() { return EventDate; }
        public AgentHistory setEventDate(Date value) { this.EventDate = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public AgentHistory setDateCreated(Date value) { this.DateCreated = value; return this; }
        public String getNote() { return Note; }
        public AgentHistory setNote(String value) { this.Note = value; return this; }
    }

    public static class AgentHistoryResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<AgentHistory> AgentHistory = new ArrayList<AgentHistory>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AgentHistoryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<AgentHistory> getAgentHistory() { return AgentHistory; }
        public AgentHistoryResponse setAgentHistory(ArrayList<AgentHistory> value) { this.AgentHistory = value; return this; }
    }

}

Java AgentHistoryRequest DTOs

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

HTTP + CSV

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

POST /v1/AgentHistory HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"AgentHistory":[{"AgentHistoryId":0,"SubAgentId":0,"EventId":0,"AgentId":0,"EventDate":"0001-01-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","Note":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AgentHistory":[{"AgentHistoryId":0,"SubAgentId":0,"EventId":0,"AgentId":0,"EventDate":"0001-01-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","Note":"String"}]}