digitaluapi

<back to all web services

GetCampaignActionFiles

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
GET/campaign/actions/filesGet Campaign Action Files
namespace digitaluapi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type FormFieldOption() = 
        member val Value:String = null with get,set
        member val Label:String = null with get,set

    [<AllowNullLiteral>]
    type FormField() = 
        member val Id:Int32 = new Int32() with get,set
        member val ControlType:String = null with get,set
        member val Label:String = null with get,set
        member val Placeholder:String = null with get,set
        member val Help:String = null with get,set
        member val Name:String = null with get,set
        member val SortOrder:Int32 = new Int32() with get,set
        member val Options:ResizeArray<FormFieldOption> = null with get,set
        member val Validation:ResizeArray<String> = null with get,set

    [<AllowNullLiteral>]
    type CampaignActionFile() = 
        member val Name:String = null with get,set
        member val FileType:String = null with get,set
        member val FileSize:String = null with get,set
        member val Extension:String = null with get,set
        member val UploadUrl:String = null with get,set

    [<AllowNullLiteral>]
    type CampaignActions() = 
        [<DataMember(Order=1)>]
        [<Required>]
        member val Id:Int64 = new Int64() with get,set

        [<DataMember(Order=2)>]
        [<Required>]
        [<References(typeof<Campaigns>)>]
        member val CampaignsId:Int64 = new Int64() with get,set

        [<DataMember(Order=3)>]
        [<References(typeof<Actions>)>]
        member val ActionsId:Nullable<Int64> = new Nullable<Int64>() with get,set

        [<DataMember(Order=4)>]
        member val ButtonName:String = null with get,set

        [<DataMember(Order=5)>]
        [<References(typeof<ActionTypes>)>]
        member val ActionTypesId:Nullable<Int32> = new Nullable<Int32>() with get,set

        [<DataMember(Order=6)>]
        member val Description:String = null with get,set

        [<DataMember(Order=7)>]
        member val OfferOrder:Nullable<Int16> = new Nullable<Int16>() with get,set

        [<DataMember(Order=8)>]
        member val StandOut:Nullable<Boolean> = new Nullable<Boolean>() with get,set

        [<DataMember(Order=9)>]
        [<Required>]
        member val PublicAccessGuid:Guid = new Guid() with get,set

        [<DataMember(Order=10)>]
        member val FormMeta:ResizeArray<FormField> = null with get,set

        [<DataMember(Order=11)>]
        member val Files:ResizeArray<CampaignActionFile> = null with get,set

        [<DataMember(Order=12)>]
        member val SentToEmailAddress:String = null with get,set

        [<DataMember(Order=13)>]
        member val CcEmailAddress:String = null with get,set

    [<AllowNullLiteral>]
    type GetCampaignActionFiles() = 
        [<DataMember(Order=1)>]
        [<Validate(Validator="NotNull")>]
        member val CampaignsId:Int64 = new Int64() with get,set

        member val CampaignActionsId:Int64 = new Int64() with get,set

F# GetCampaignActionFiles 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.

GET /campaign/actions/files HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CampaignActions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel.Types">
  <ActionTypesId>0</ActionTypesId>
  <ActionsId>0</ActionsId>
  <ButtonName>String</ButtonName>
  <CampaignsId>0</CampaignsId>
  <CcEmailAddress>String</CcEmailAddress>
  <Description>String</Description>
  <Files xmlns:d2p1="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
    <d2p1:CampaignActionFile>
      <d2p1:Extension>String</d2p1:Extension>
      <d2p1:FileSize>String</d2p1:FileSize>
      <d2p1:FileType>String</d2p1:FileType>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:UploadUrl>String</d2p1:UploadUrl>
    </d2p1:CampaignActionFile>
  </Files>
  <FormMeta xmlns:d2p1="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel">
    <d2p1:FormField>
      <d2p1:ControlType>String</d2p1:ControlType>
      <d2p1:Help>String</d2p1:Help>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:Label>String</d2p1:Label>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Options>
        <d2p1:FormFieldOption>
          <d2p1:Label>String</d2p1:Label>
          <d2p1:Value>String</d2p1:Value>
        </d2p1:FormFieldOption>
      </d2p1:Options>
      <d2p1:Placeholder>String</d2p1:Placeholder>
      <d2p1:SortOrder>0</d2p1:SortOrder>
      <d2p1:Validation xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:Validation>
    </d2p1:FormField>
  </FormMeta>
  <Id>0</Id>
  <OfferOrder>0</OfferOrder>
  <PublicAccessGuid>00000000-0000-0000-0000-000000000000</PublicAccessGuid>
  <SentToEmailAddress>String</SentToEmailAddress>
  <StandOut>false</StandOut>
</CampaignActions>