| Requires any of the roles: | Agent, Administrator |
| GET | /v1/Comment |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CommentRequest
{
public UUID ConversationDetailId = null;
public UUID getConversationDetailId() { return ConversationDetailId; }
public CommentRequest setConversationDetailId(UUID value) { this.ConversationDetailId = value; return this; }
}
public static class CommentResponse
{
public ResponseStatus ResponseStatus = null;
public UnreadComment Comment = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CommentResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public UnreadComment getComment() { return Comment; }
public CommentResponse setComment(UnreadComment value) { this.Comment = value; return this; }
}
public static class UnreadComment
{
public UUID ConversationHeaderId = null;
public String TableName = null;
public String FieldName = null;
public Integer RecordId = null;
public String Comment = null;
public Date DateCreated = null;
public String AgentName = null;
public Integer AgentID = null;
public UUID getConversationHeaderId() { return ConversationHeaderId; }
public UnreadComment setConversationHeaderId(UUID value) { this.ConversationHeaderId = value; return this; }
public String getTableName() { return TableName; }
public UnreadComment setTableName(String value) { this.TableName = value; return this; }
public String getFieldName() { return FieldName; }
public UnreadComment setFieldName(String value) { this.FieldName = value; return this; }
public Integer getRecordId() { return RecordId; }
public UnreadComment setRecordId(Integer value) { this.RecordId = value; return this; }
public String getComment() { return Comment; }
public UnreadComment setComment(String value) { this.Comment = value; return this; }
public Date getDateCreated() { return DateCreated; }
public UnreadComment setDateCreated(Date value) { this.DateCreated = value; return this; }
public String getAgentName() { return AgentName; }
public UnreadComment setAgentName(String value) { this.AgentName = value; return this; }
public Integer getAgentID() { return AgentID; }
public UnreadComment setAgentID(Integer value) { this.AgentID = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Comment HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
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"}},"Comment":{"ConversationHeaderId":"00000000000000000000000000000000","TableName":"String","FieldName":"String","RecordId":0,"Comment":"String","DateCreated":"0001-01-01T00:00:00.0000000+00:00","AgentName":"String","AgentID":0}}