| Requires any of the roles: | Worker, Agent, Administrator, Worker, Agent, Administrator, Worker, Agent, Administrator, Worker, Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/ContactHistory/{ContactHistoryId} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/ContactHistory |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class ContactHistoryRequest
{
open var ContactHistory:ArrayList<ContactHistory> = ArrayList<ContactHistory>()
}
open class ContactHistory
{
open var ContactHistoryId:Int? = null
open var ContactId:Int? = null
open var EventId:Int? = null
open var AgentId:Int? = null
open var EventDate:Date? = null
open var DateCreated:Date? = null
open var Note:String? = null
}
open class ContactHistoryResponse
{
open var ResponseStatus:ResponseStatus? = null
open var ContactHistory:ArrayList<ContactHistoryExtended> = ArrayList<ContactHistoryExtended>()
}
open class ContactHistoryExtended : ContactHistory()
{
open var EventTypeName:String? = null
open var Application:ArrayList<ActivityTracker_Application> = ArrayList<ActivityTracker_Application>()
}
open class ActivityTracker_Application
{
open var ContactName:String? = null
open var Carriers:String? = null
open var ApplicationId:Int? = null
open var ContactId:Int? = null
open var LifeAP:BigDecimal? = null
open var AnnuityFlow:BigDecimal? = null
open var AnnuityTransfer:BigDecimal? = null
open var DateCreated:Date? = null
}
Kotlin ContactHistoryRequest 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.
POST /v1/ContactHistory/{ContactHistoryId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ContactHistory:
[
{
ContactHistoryId: 0,
ContactId: 0,
EventId: 0,
AgentId: 0,
EventDate: 0001-01-01,
DateCreated: 0001-01-01,
Note: String
}
]
}
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
}
},
ContactHistory:
[
{
EventTypeName: String,
Application:
[
{
ContactName: String,
Carriers: String,
ApplicationId: 0,
ContactId: 0,
LifeAP: 0,
AnnuityFlow: 0,
AnnuityTransfer: 0,
DateCreated: 0001-01-01
}
],
ContactHistoryId: 0,
ContactId: 0,
EventId: 0,
AgentId: 0,
EventDate: 0001-01-01,
DateCreated: 0001-01-01,
Note: String
}
]
}