| Requires any of the roles: | Worker, Agent, Administrator, Worker, Agent, Administrator |
| GET,OPTIONS | /v1/Dropbox/{AgentName} | ||
|---|---|---|---|
| POST,OPTIONS | /v1/Dropbox/{AttachmentId} | ||
| GET,POST,OPTIONS | /v1/Dropbox | ||
| GET,OPTIONS | /v1/Dropbox/ByAgentID/{ID} | ||
| GET,OPTIONS | /v1/Dropbox/ByAgentID/{ID}/{LoggedInAgent}/{PageName} | ||
| GET,OPTIONS | /v1/Dropbox/ByAgentID/{ID}/{PageName} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DropboxRequest
{
public String Attachment = null;
public ArrayList<Dropbox> Dropbox = new ArrayList<Dropbox>();
public String AttachmentId = null;
public Integer ID = null;
public Integer LoggedInAgent = null;
public String AgentName = null;
public String PageName = null;
public String TableName = null;
public String FieldName = null;
public ArrayList<Integer> RecordIds = new ArrayList<Integer>();
public Boolean IsNewApplication = null;
public Boolean IsFactFillerPro = null;
public Boolean AgentId = null;
public String AgentEmail = null;
public String FullNameAttachee = null;
public Boolean IsFactFinder = null;
public Integer SharedId = null;
public Integer Sharer = null;
public Boolean IsSecurities = null;
public Boolean Locked = null;
public String getAttachment() { return Attachment; }
public DropboxRequest setAttachment(String value) { this.Attachment = value; return this; }
public ArrayList<Dropbox> getDropbox() { return Dropbox; }
public DropboxRequest setDropbox(ArrayList<Dropbox> value) { this.Dropbox = value; return this; }
public String getAttachmentId() { return AttachmentId; }
public DropboxRequest setAttachmentId(String value) { this.AttachmentId = value; return this; }
public Integer getId() { return ID; }
public DropboxRequest setId(Integer value) { this.ID = value; return this; }
public Integer getLoggedInAgent() { return LoggedInAgent; }
public DropboxRequest setLoggedInAgent(Integer value) { this.LoggedInAgent = value; return this; }
public String getAgentName() { return AgentName; }
public DropboxRequest setAgentName(String value) { this.AgentName = value; return this; }
public String getPageName() { return PageName; }
public DropboxRequest setPageName(String value) { this.PageName = value; return this; }
public String getTableName() { return TableName; }
public DropboxRequest setTableName(String value) { this.TableName = value; return this; }
public String getFieldName() { return FieldName; }
public DropboxRequest setFieldName(String value) { this.FieldName = value; return this; }
public ArrayList<Integer> getRecordIds() { return RecordIds; }
public DropboxRequest setRecordIds(ArrayList<Integer> value) { this.RecordIds = value; return this; }
public Boolean getIsNewApplication() { return IsNewApplication; }
public DropboxRequest setIsNewApplication(Boolean value) { this.IsNewApplication = value; return this; }
public Boolean getIsFactFillerPro() { return IsFactFillerPro; }
public DropboxRequest setIsFactFillerPro(Boolean value) { this.IsFactFillerPro = value; return this; }
public Boolean isAgentId() { return AgentId; }
public DropboxRequest setAgentId(Boolean value) { this.AgentId = value; return this; }
public String getAgentEmail() { return AgentEmail; }
public DropboxRequest setAgentEmail(String value) { this.AgentEmail = value; return this; }
public String getFullNameAttachee() { return FullNameAttachee; }
public DropboxRequest setFullNameAttachee(String value) { this.FullNameAttachee = value; return this; }
public Boolean getIsFactFinder() { return IsFactFinder; }
public DropboxRequest setIsFactFinder(Boolean value) { this.IsFactFinder = value; return this; }
public Integer getSharedId() { return SharedId; }
public DropboxRequest setSharedId(Integer value) { this.SharedId = value; return this; }
public Integer getSharer() { return Sharer; }
public DropboxRequest setSharer(Integer value) { this.Sharer = value; return this; }
public Boolean getIsSecurities() { return IsSecurities; }
public DropboxRequest setIsSecurities(Boolean value) { this.IsSecurities = value; return this; }
public Boolean isLocked() { return Locked; }
public DropboxRequest setLocked(Boolean value) { this.Locked = value; return this; }
}
public static class Dropbox
{
public Integer Id = null;
public UUID AttachmentId = null;
public String FirstName = null;
public String LastName = null;
public String TableName = null;
public Integer RecordId = null;
public String Description = null;
public String DocumentType = null;
public String DocumentGroup = null;
public Date DateAdded = null;
public Boolean Locked = null;
public Double FileSizeInKB = null;
public Integer getId() { return Id; }
public Dropbox setId(Integer value) { this.Id = value; return this; }
public UUID getAttachmentId() { return AttachmentId; }
public Dropbox setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
public String getFirstName() { return FirstName; }
public Dropbox setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public Dropbox setLastName(String value) { this.LastName = value; return this; }
public String getTableName() { return TableName; }
public Dropbox setTableName(String value) { this.TableName = value; return this; }
public Integer getRecordId() { return RecordId; }
public Dropbox setRecordId(Integer value) { this.RecordId = value; return this; }
public String getDescription() { return Description; }
public Dropbox setDescription(String value) { this.Description = value; return this; }
public String getDocumentType() { return DocumentType; }
public Dropbox setDocumentType(String value) { this.DocumentType = value; return this; }
public String getDocumentGroup() { return DocumentGroup; }
public Dropbox setDocumentGroup(String value) { this.DocumentGroup = value; return this; }
public Date getDateAdded() { return DateAdded; }
public Dropbox setDateAdded(Date value) { this.DateAdded = value; return this; }
public Boolean isLocked() { return Locked; }
public Dropbox setLocked(Boolean value) { this.Locked = value; return this; }
public Double getFileSizeInKB() { return FileSizeInKB; }
public Dropbox setFileSizeInKB(Double value) { this.FileSizeInKB = value; return this; }
}
public static class DropboxResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<DropboxExtended> Dropbox = new ArrayList<DropboxExtended>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public DropboxResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<DropboxExtended> getDropbox() { return Dropbox; }
public DropboxResponse setDropbox(ArrayList<DropboxExtended> value) { this.Dropbox = value; return this; }
}
public static class DropboxExtended extends Dropbox
{
public String AttachmentName = null;
public String AgentName = null;
public String MimeType = null;
public Boolean IsAgent = null;
public Boolean IsContact = null;
public Boolean IsShared = null;
public Boolean CanShare = null;
public String ShareList = null;
public String getAttachmentName() { return AttachmentName; }
public DropboxExtended setAttachmentName(String value) { this.AttachmentName = value; return this; }
public String getAgentName() { return AgentName; }
public DropboxExtended setAgentName(String value) { this.AgentName = value; return this; }
public String getMimeType() { return MimeType; }
public DropboxExtended setMimeType(String value) { this.MimeType = value; return this; }
public Boolean getIsAgent() { return IsAgent; }
public DropboxExtended setIsAgent(Boolean value) { this.IsAgent = value; return this; }
public Boolean getIsContact() { return IsContact; }
public DropboxExtended setIsContact(Boolean value) { this.IsContact = value; return this; }
public Boolean getIsShared() { return IsShared; }
public DropboxExtended setIsShared(Boolean value) { this.IsShared = value; return this; }
public Boolean isCanShare() { return CanShare; }
public DropboxExtended setCanShare(Boolean value) { this.CanShare = value; return this; }
public String getShareList() { return ShareList; }
public DropboxExtended setShareList(String value) { this.ShareList = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Dropbox/{AttachmentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Attachment":"String","Dropbox":[{"Id":0,"AttachmentId":"00000000000000000000000000000000","FirstName":"String","LastName":"String","TableName":"String","RecordId":0,"Description":"String","DocumentType":"String","DocumentGroup":"String","DateAdded":"0001-01-01T00:00:00.0000000","Locked":false,"FileSizeInKB":0}],"AttachmentId":"String","ID":0,"LoggedInAgent":0,"AgentName":"String","PageName":"String","TableName":"String","FieldName":"String","RecordIds":[0],"IsNewApplication":false,"IsFactFillerPro":false,"AgentId":false,"AgentEmail":"String","FullNameAttachee":"String","IsFactFinder":false,"SharedId":0,"Sharer":0,"IsSecurities":false,"Locked":false}
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"}},"Dropbox":[{"AttachmentName":"String","AgentName":"String","MimeType":"String","IsAgent":false,"IsContact":false,"IsShared":false,"CanShare":false,"ShareList":"String","Id":0,"AttachmentId":"00000000000000000000000000000000","FirstName":"String","LastName":"String","TableName":"String","RecordId":0,"Description":"String","DocumentType":"String","DocumentGroup":"String","DateAdded":"0001-01-01T00:00:00.0000000","Locked":false,"FileSizeInKB":0}]}