| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/DropboxShareExtended/{ContactId}/{AttachmentId}/{SharerAgentId} | ||
|---|---|---|---|
| GET,OPTIONS | /v1/DropboxShareExtended/DB/{AttachmentId}/{SharerAgentId} |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DropboxShareRequestExtended
{
public Integer ContactId = null;
public String AttachmentId = null;
public Integer SharerAgentId = null;
public Integer getContactId() { return ContactId; }
public DropboxShareRequestExtended setContactId(Integer value) { this.ContactId = value; return this; }
public String getAttachmentId() { return AttachmentId; }
public DropboxShareRequestExtended setAttachmentId(String value) { this.AttachmentId = value; return this; }
public Integer getSharerAgentId() { return SharerAgentId; }
public DropboxShareRequestExtended setSharerAgentId(Integer value) { this.SharerAgentId = value; return this; }
}
public static class DropboxShareResponseExtended
{
public ResponseStatus ResponseStatus = null;
public ArrayList<DropboxShareExtended> DropboxShareExtended = new ArrayList<DropboxShareExtended>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public DropboxShareResponseExtended setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<DropboxShareExtended> getDropboxShareExtended() { return DropboxShareExtended; }
public DropboxShareResponseExtended setDropboxShareExtended(ArrayList<DropboxShareExtended> value) { this.DropboxShareExtended = value; return this; }
}
public static class DropboxShareExtended
{
public Integer DropboxShareId = null;
public Integer SharerAgentId = null;
public Integer ContactId = null;
public Integer ProjectId = null;
public Integer AgentId = null;
public String FirstName = null;
public String LastName = null;
public UUID AttachmentId = null;
public Boolean CanShare = null;
public Integer getDropboxShareId() { return DropboxShareId; }
public DropboxShareExtended setDropboxShareId(Integer value) { this.DropboxShareId = value; return this; }
public Integer getSharerAgentId() { return SharerAgentId; }
public DropboxShareExtended setSharerAgentId(Integer value) { this.SharerAgentId = value; return this; }
public Integer getContactId() { return ContactId; }
public DropboxShareExtended setContactId(Integer value) { this.ContactId = value; return this; }
public Integer getProjectId() { return ProjectId; }
public DropboxShareExtended setProjectId(Integer value) { this.ProjectId = value; return this; }
public Integer getAgentId() { return AgentId; }
public DropboxShareExtended setAgentId(Integer value) { this.AgentId = value; return this; }
public String getFirstName() { return FirstName; }
public DropboxShareExtended setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public DropboxShareExtended setLastName(String value) { this.LastName = value; return this; }
public UUID getAttachmentId() { return AttachmentId; }
public DropboxShareExtended setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
public Boolean isCanShare() { return CanShare; }
public DropboxShareExtended setCanShare(Boolean value) { this.CanShare = value; return this; }
}
}
Java DropboxShareRequestExtended DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/DropboxShareExtended/{ContactId}/{AttachmentId}/{SharerAgentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
DropboxShareExtended:
[
{
DropboxShareId: 0,
SharerAgentId: 0,
ContactId: 0,
ProjectId: 0,
AgentId: 0,
FirstName: String,
LastName: String,
AttachmentId: 00000000000000000000000000000000,
CanShare: False
}
]
}