| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Contact/{ContactId}/audittrail |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ContactAuditTrailRequest
{
public Integer ContactId = null;
public Integer getContactId() { return ContactId; }
public ContactAuditTrailRequest setContactId(Integer value) { this.ContactId = 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 ContactAuditTrailRequest 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/Contact/{ContactId}/audittrail 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
}
},
Entries:
[
{
Action: String,
Who: String,
At: 0001-01-01
}
]
}