| GET,POST,OPTIONS | /v1/engine/sweeps/before-a-date |
|---|
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 EngineExpirySweepRequest
Public Overridable Property WorkflowId As Integer?
End Class
Public Partial Class EngineExpirySweepResponse
Public Overridable Property Swept As Boolean
Public Overridable Property Why As String
Public Overridable Property LocalDate As String
Public Overridable Property CertMilestones As List(Of Integer) = New List(Of Integer)
Public Overridable Property DocMilestones As List(Of Integer) = New List(Of Integer)
Public Overridable Property ListeningWorkflowIds As List(Of Integer) = New List(Of Integer)
Public Overridable Property Steps As Integer
Public Overridable Property Claimed As Integer
Public Overridable Property Written As Integer
Public Overridable Property Released As Integer
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET EngineExpirySweepRequest 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/engine/sweeps/before-a-date HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"WorkflowId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Swept":false,"Why":"String","LocalDate":"String","CertMilestones":[0],"DocMilestones":[0],"ListeningWorkflowIds":[0],"Steps":0,"Claimed":0,"Written":0,"Released":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}