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
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SetCampaignActionForm
    {
        @DataMember(Order=1)
        @Validate(Validator="NotNull")
        public Long CampaignsId = null;

        public Long CampaignActionsId = null;
        public ArrayList<FormField> FormMeta = null;
        
        public Long getCampaignsId() { return CampaignsId; }
        public SetCampaignActionForm setCampaignsId(Long value) { this.CampaignsId = value; return this; }
        public Long getCampaignActionsId() { return CampaignActionsId; }
        public SetCampaignActionForm setCampaignActionsId(Long value) { this.CampaignActionsId = value; return this; }
        public ArrayList<FormField> getFormMeta() { return FormMeta; }
        public SetCampaignActionForm setFormMeta(ArrayList<FormField> value) { this.FormMeta = value; return this; }
    }

    public static class FormField
    {
        public Integer Id = null;
        public String ControlType = null;
        public String Label = null;
        public String Placeholder = null;
        public String Help = null;
        public String Name = null;
        public Integer SortOrder = null;
        public ArrayList<FormFieldOption> Options = null;
        public ArrayList<String> Validation = null;
        
        public Integer getId() { return Id; }
        public FormField setId(Integer value) { this.Id = value; return this; }
        public String getControlType() { return ControlType; }
        public FormField setControlType(String value) { this.ControlType = value; return this; }
        public String getLabel() { return Label; }
        public FormField setLabel(String value) { this.Label = value; return this; }
        public String getPlaceholder() { return Placeholder; }
        public FormField setPlaceholder(String value) { this.Placeholder = value; return this; }
        public String getHelp() { return Help; }
        public FormField setHelp(String value) { this.Help = value; return this; }
        public String getName() { return Name; }
        public FormField setName(String value) { this.Name = value; return this; }
        public Integer getSortOrder() { return SortOrder; }
        public FormField setSortOrder(Integer value) { this.SortOrder = value; return this; }
        public ArrayList<FormFieldOption> getOptions() { return Options; }
        public FormField setOptions(ArrayList<FormFieldOption> value) { this.Options = value; return this; }
        public ArrayList<String> getValidation() { return Validation; }
        public FormField setValidation(ArrayList<String> value) { this.Validation = value; return this; }
    }

    public static class FormFieldOption
    {
        public String Value = null;
        public String Label = null;
        
        public String getValue() { return Value; }
        public FormFieldOption setValue(String value) { this.Value = value; return this; }
        public String getLabel() { return Label; }
        public FormFieldOption setLabel(String value) { this.Label = value; return this; }
    }

    public static class SetCampaignActionFormResponse
    {
        public Boolean Status = null;
        public ResponseStatus ResponseStatus = null;
        
        public Boolean isStatus() { return Status; }
        public SetCampaignActionFormResponse setStatus(Boolean value) { this.Status = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public SetCampaignActionFormResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java SetCampaignActionForm DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<SetCampaignActionForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
  <CampaignActionsId>0</CampaignActionsId>
  <CampaignsId>0</CampaignsId>
  <FormMeta>
    <FormField>
      <ControlType>String</ControlType>
      <Help>String</Help>
      <Id>0</Id>
      <Label>String</Label>
      <Name>String</Name>
      <Options>
        <FormFieldOption>
          <Label>String</Label>
          <Value>String</Value>
        </FormFieldOption>
      </Options>
      <Placeholder>String</Placeholder>
      <SortOrder>0</SortOrder>
      <Validation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </Validation>
    </FormField>
  </FormMeta>
</SetCampaignActionForm>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SetCampaignActionFormResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Status>false</Status>
</SetCampaignActionFormResponse>