| POST | /v1/coverage/swap/{Token}/respond |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class CoverageSwapRespondRequest
Public Overridable Property Token As String
Public Overridable Property Action As String
End Class
Public Partial Class CoverageSwapSideInfo
Public Overridable Property Name As String
Public Overridable Property DateText As String
Public Overridable Property JobName As String
Public Overridable Property Consented As Boolean
End Class
Public Partial Class CoverageSwapViewResponse
Public Overridable Property State As String
Public Overridable Property You As CoverageSwapSideInfo
Public Overridable Property Them As CoverageSwapSideInfo
Public Overridable Property Directed As Boolean
Public Overridable Property WithdrawnBy As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET CoverageSwapRespondRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/coverage/swap/{Token}/respond HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Token":"String","Action":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"State":"String","You":{"Name":"String","DateText":"String","JobName":"String","Consented":false},"Them":{"Name":"String","DateText":"String","JobName":"String","Consented":false},"Directed":false,"WithdrawnBy":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}