| Required role: | Admin |
| POST | /SurveyCampaign/{CampaignId}/MarkResponded |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class SurveyMarkRespondedRequest
Public Sub New()
AnsweredUrls = New List(Of String)
End Sub
Public Overridable Property CampaignId As Integer
Public Overridable Property AnsweredUrls As List(Of String)
Public Overridable Property MarkMissingAsUnanswered As Boolean
End Class
Public Partial Class SurveyMarkRespondedResult
Public Sub New()
UnmatchedUrls = New List(Of String)
End Sub
Public Overridable Property Matched As Integer
Public Overridable Property AlreadyMarked As Integer
Public Overridable Property Unmatched As Integer
Public Overridable Property UnmatchedUrls As List(Of String)
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
End Class
End Namespace
End Namespace
VB.NET SurveyMarkRespondedRequest 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 /SurveyCampaign/{CampaignId}/MarkResponded HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
campaignId: 0,
answeredUrls:
[
String
],
markMissingAsUnanswered: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
matched: 0,
alreadyMarked: 0,
unmatched: 0,
unmatchedUrls:
[
String
],
statusCode: 0,
message: String
}