digitaluapi

<back to all web services

SetCampaignActionForm

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/campaign/actionformSet 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 .other suffix or ?format=other

HTTP + OTHER

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/jsonl
Content-Type: text/jsonl
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/jsonl
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"}}}