Trendsic Platform Service

<back to all web services

ContactAuditLogRequest

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

public class dtos
{

    public static class ContactAuditLogRequest
    {
        public Integer ContactId = null;
        public String Action = null;
        
        public Integer getContactId() { return ContactId; }
        public ContactAuditLogRequest setContactId(Integer value) { this.ContactId = value; return this; }
        public String getAction() { return Action; }
        public ContactAuditLogRequest setAction(String value) { this.Action = value; return this; }
    }

    public static class ContactAuditTrailResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<ContactAuditEntry> Entries = new ArrayList<ContactAuditEntry>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ContactAuditTrailResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<ContactAuditEntry> getEntries() { return Entries; }
        public ContactAuditTrailResponse setEntries(ArrayList<ContactAuditEntry> value) { this.Entries = value; return this; }
    }

    public static class ContactAuditEntry
    {
        public String Action = null;
        public String Who = null;
        public Date At = null;
        
        public String getAction() { return Action; }
        public ContactAuditEntry setAction(String value) { this.Action = value; return this; }
        public String getWho() { return Who; }
        public ContactAuditEntry setWho(String value) { this.Who = value; return this; }
        public Date getAt() { return At; }
        public ContactAuditEntry setAt(Date value) { this.At = value; return this; }
    }

}

Java ContactAuditLogRequest 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/Contact/{ContactId}/audit HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ContactId":0,"Action":"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"}},"Entries":[{"Action":"String","Who":"String","At":"0001-01-01T00:00:00.0000000"}]}