| Requires any of the roles: | Client, Admin, Partner |
| PUT | /campaign/actionform | Set Campaign Action Form |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports digitaluapi.ServiceModel
Namespace Global
Namespace digitaluapi.ServiceModel
Public Partial Class FormField
Public Overridable Property Id As Integer
Public Overridable Property ControlType As String
Public Overridable Property Label As String
Public Overridable Property Placeholder As String
Public Overridable Property Help As String
Public Overridable Property Name As String
Public Overridable Property SortOrder As Integer
Public Overridable Property Options As List(Of FormFieldOption)
Public Overridable Property Validation As List(Of String)
End Class
Public Partial Class FormFieldOption
Public Overridable Property Value As String
Public Overridable Property Label As String
End Class
Public Partial Class SetCampaignActionForm
<DataMember(Order:=1)>
<Validate(Validator:="NotNull")>
Public Overridable Property CampaignsId As Long
Public Overridable Property CampaignActionsId As Long
Public Overridable Property FormMeta As List(Of FormField)
End Class
Public Partial Class SetCampaignActionFormResponse
Public Overridable Property Status As Boolean
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET SetCampaignActionForm 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.
PUT /campaign/actionform HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CampaignsId: 0,
CampaignActionsId: 0,
FormMeta:
[
{
Id: 0,
ControlType: String,
Label: String,
Placeholder: String,
Help: String,
Name: String,
SortOrder: 0,
Options:
[
{
Value: String,
Label: String
}
],
Validation:
[
String
]
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Status: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}