| POST,OPTIONS | /v1/coverage/self/cancel |
|---|
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 CoverageSelfCancelRequest
Public Overridable Property CoverageGapId As Integer
End Class
Public Partial Class CoverageSelfCard
Public Overridable Property CoverageGapId As Integer
Public Overridable Property Kind As String
Public Overridable Property Status As String
Public Overridable Property ShiftDay As String
Public Overridable Property ShiftWindow As String
Public Overridable Property ShiftStartUtc As Date?
Public Overridable Property Site As String
Public Overridable Property RoleNeeded As String
Public Overridable Property ExpiryLabel As String
Public Overridable Property PosterName As String
Public Overridable Property EligibleCount As Integer
Public Overridable Property IneligibleCount As Integer
Public Overridable Property MyEligibility As CoverageSelfEligibility
Public Overridable Property Matrix As List(Of CoverageSelfMatrixRow) = New List(Of CoverageSelfMatrixRow)
Public Overridable Property SwapState As String
Public Overridable Property SwapFromName As String
Public Overridable Property SwapTargetName As String
Public Overridable Property OfferShift As String
Public Overridable Property WantShift As String
Public Overridable Property ConflictOk As Boolean
Public Overridable Property ConflictLabel As String
Public Overridable Property CanRespond As Boolean
End Class
Public Partial Class CoverageSelfCardResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Card As CoverageSelfCard
End Class
Public Partial Class CoverageSelfEligibility
Public Overridable Property Tone As String
Public Overridable Property Text As String
Public Overridable Property CanClaim As Boolean
Public Overridable Property ClaimLabel As String
End Class
Public Partial Class CoverageSelfMatrixRow
Public Overridable Property Name As String
Public Overridable Property Note As String
Public Overridable Property Tone As String
End Class
End Namespace
End Namespace
VB.NET CoverageSelfCancelRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/coverage/self/cancel HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"CoverageGapId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Card":{"CoverageGapId":0,"Kind":"String","Status":"String","ShiftDay":"String","ShiftWindow":"String","ShiftStartUtc":"0001-01-01T00:00:00.0000000","Site":"String","RoleNeeded":"String","ExpiryLabel":"String","PosterName":"String","EligibleCount":0,"IneligibleCount":0,"MyEligibility":{"Tone":"String","Text":"String","CanClaim":false,"ClaimLabel":"String"},"Matrix":[{"Name":"String","Note":"String","Tone":"String"}],"SwapState":"String","SwapFromName":"String","SwapTargetName":"String","OfferShift":"String","WantShift":"String","ConflictOk":false,"ConflictLabel":"String","CanRespond":false}}