Trendsic Platform Service

<back to all web services

ConversationDetailRequest

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

public class dtos
{

    public static class ConversationDetailRequest
    {
        public ConversationDetail ConversationDetail = null;
        public UUID ConversationHeaderId = null;
        public String AttachmentComment = null;
        
        public ConversationDetail getConversationDetail() { return ConversationDetail; }
        public ConversationDetailRequest setConversationDetail(ConversationDetail value) { this.ConversationDetail = value; return this; }
        public UUID getConversationHeaderId() { return ConversationHeaderId; }
        public ConversationDetailRequest setConversationHeaderId(UUID value) { this.ConversationHeaderId = value; return this; }
        public String getAttachmentComment() { return AttachmentComment; }
        public ConversationDetailRequest setAttachmentComment(String value) { this.AttachmentComment = value; return this; }
    }

    public static class ConversationDetail
    {
        public UUID ConversationDetailId = null;
        public UUID ConversationHeaderId = null;
        public String Comment = null;
        public Date DateCreated = null;
        public UUID CreatedBy = null;
        public String CreatedByName = null;
        public UUID AttachmentId = null;
        public Boolean IsAdminComment = null;
        public Boolean IsDeletedComment = null;
        
        public UUID getConversationDetailId() { return ConversationDetailId; }
        public ConversationDetail setConversationDetailId(UUID value) { this.ConversationDetailId = value; return this; }
        public UUID getConversationHeaderId() { return ConversationHeaderId; }
        public ConversationDetail setConversationHeaderId(UUID value) { this.ConversationHeaderId = value; return this; }
        public String getComment() { return Comment; }
        public ConversationDetail setComment(String value) { this.Comment = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public ConversationDetail setDateCreated(Date value) { this.DateCreated = value; return this; }
        public UUID getCreatedBy() { return CreatedBy; }
        public ConversationDetail setCreatedBy(UUID value) { this.CreatedBy = value; return this; }
        public String getCreatedByName() { return CreatedByName; }
        public ConversationDetail setCreatedByName(String value) { this.CreatedByName = value; return this; }
        public UUID getAttachmentId() { return AttachmentId; }
        public ConversationDetail setAttachmentId(UUID value) { this.AttachmentId = value; return this; }
        public Boolean getIsAdminComment() { return IsAdminComment; }
        public ConversationDetail setIsAdminComment(Boolean value) { this.IsAdminComment = value; return this; }
        public Boolean getIsDeletedComment() { return IsDeletedComment; }
        public ConversationDetail setIsDeletedComment(Boolean value) { this.IsDeletedComment = value; return this; }
    }

    public static class ConversationDetailResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ConversationDetail ConversationDetail = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ConversationDetailResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ConversationDetail getConversationDetail() { return ConversationDetail; }
        public ConversationDetailResponse setConversationDetail(ConversationDetail value) { this.ConversationDetail = value; return this; }
    }

}

Java ConversationDetailRequest 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/ConversationDetail HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ConversationDetail":{"ConversationDetailId":"00000000000000000000000000000000","ConversationHeaderId":"00000000000000000000000000000000","Comment":"String","DateCreated":"0001-01-01T00:00:00.0000000+00:00","CreatedBy":"00000000000000000000000000000000","CreatedByName":"String","AttachmentId":"00000000000000000000000000000000","IsAdminComment":false,"IsDeletedComment":false},"ConversationHeaderId":"00000000000000000000000000000000","AttachmentComment":"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"}},"ConversationDetail":{"ConversationDetailId":"00000000000000000000000000000000","ConversationHeaderId":"00000000000000000000000000000000","Comment":"String","DateCreated":"0001-01-01T00:00:00.0000000+00:00","CreatedBy":"00000000000000000000000000000000","CreatedByName":"String","AttachmentId":"00000000000000000000000000000000","IsAdminComment":false,"IsDeletedComment":false}}