Create a landing page

post

/api/REST/1.0/assets/landingPage

Creates a landing page that matches the criteria specified by the request body for htmlContent with a type of RawHtmlContent.

Request

Supported Media Types
Body ()
The request body defines the details of the landing page to be created.
Root Schema : LandingPage
Type: object
Title: LandingPage
Show Source
Nested Schema : contentSections
Type: array
A list of content sections contained within the landing page.
Show Source
Nested Schema : dynamicContents
Type: array
A list of dynamic contents contained within the landing page.
Show Source
Nested Schema : files
Type: array
A list of files contained within the landing page.
Show Source
Nested Schema : forms
Type: array
A list of forms contained within the landing page.
Show Source
Nested Schema : HtmlContent
Type: object
Title: HtmlContent
Show Source
Nested Schema : images
Type: array
A list of images contained within the landing page.
Show Source
Nested Schema : ContentSection
Type: object
Title: ContentSection
Show Source
Nested Schema : forms
Type: array
A list of associated Form assets.
Show Source
Nested Schema : images
Type: array
A list of associated Image assets.
Show Source
Nested Schema : Size
Type: object
Title: Size
Show Source
Nested Schema : Form
Type: object
Title: Form
Show Source
Nested Schema : elements
Type: array
Array consisting of form elements.
Show Source
Nested Schema : processingSteps
Type: array
A list of the form's processing steps. There is no limit to the number of processing steps that can be included. Possible values include: FormStepAddToCampaign, FormStepAddToContactList, FormStepAddToDataCanvas, FormStepAddToProgram, FormStepAssociateToCampaign, FormStepCancelRegistration, FormStepUpdateContactEmailAddress, FormStepCreateUpdateEventRegistration, FormStepCreateUpdate, FormStepCreateUpdateFromFormField, FormStepGlobalSubscribe, FormStepGlobalUnsubscribe, FormStepGroupSubscription, FormStepPostData, FormStepRedirectToWebPage, FormStepRemoveFromContactList, FormStepRunIntegrationRules, FormStepSendEmail, FormStepSendNotificationEmail, and FormStepWebTracking.
Show Source
Nested Schema : FormElement
Type: object
Title: FormElement
Show Source
Nested Schema : FormProcessingStep
Type: object
Title: FormProcessingStep
Show Source
Nested Schema : Hyperlink
Type: object
Title: Hyperlink
Show Source
Nested Schema : ImageFile
Type: object
Title: ImageFile
Show Source
Nested Schema : DynamicContent
Type: object
Title: DynamicContent
Show Source
Nested Schema : rules
Type: array
The dynamic content's rules.
Show Source
Nested Schema : DynamicContentRule
Type: object
Title: DynamicContentRule
Show Source
Nested Schema : criteria
Type: array
The criteria of the dynamic content rule.
Show Source
Nested Schema : Criterion
Type: object
Title: Criterion
Show Source
Nested Schema : ImportedFile
Type: object
Title: ImportedFile
Show Source
Back to Top

Response

Supported Media Types

201 Response

Success.
Body ()
Root Schema : LandingPage
Type: object
Title: LandingPage
Show Source
Nested Schema : contentSections
Type: array
A list of content sections contained within the landing page.
Show Source
Nested Schema : dynamicContents
Type: array
A list of dynamic contents contained within the landing page.
Show Source
Nested Schema : files
Type: array
A list of files contained within the landing page.
Show Source
Nested Schema : forms
Type: array
A list of forms contained within the landing page.
Show Source
Nested Schema : HtmlContent
Type: object
Title: HtmlContent
Show Source
Nested Schema : images
Type: array
A list of images contained within the landing page.
Show Source
Nested Schema : ContentSection
Type: object
Title: ContentSection
Show Source
Nested Schema : forms
Type: array
A list of associated Form assets.
Show Source
Nested Schema : images
Type: array
A list of associated Image assets.
Show Source
Nested Schema : Size
Type: object
Title: Size
Show Source
Nested Schema : Form
Type: object
Title: Form
Show Source
Nested Schema : elements
Type: array
Array consisting of form elements.
Show Source
Nested Schema : processingSteps
Type: array
A list of the form's processing steps. There is no limit to the number of processing steps that can be included. Possible values include: FormStepAddToCampaign, FormStepAddToContactList, FormStepAddToDataCanvas, FormStepAddToProgram, FormStepAssociateToCampaign, FormStepCancelRegistration, FormStepUpdateContactEmailAddress, FormStepCreateUpdateEventRegistration, FormStepCreateUpdate, FormStepCreateUpdateFromFormField, FormStepGlobalSubscribe, FormStepGlobalUnsubscribe, FormStepGroupSubscription, FormStepPostData, FormStepRedirectToWebPage, FormStepRemoveFromContactList, FormStepRunIntegrationRules, FormStepSendEmail, FormStepSendNotificationEmail, and FormStepWebTracking.
Show Source
Nested Schema : FormElement
Type: object
Title: FormElement
Show Source
Nested Schema : FormProcessingStep
Type: object
Title: FormProcessingStep
Show Source
Nested Schema : Hyperlink
Type: object
Title: Hyperlink
Show Source
Nested Schema : ImageFile
Type: object
Title: ImageFile
Show Source
Nested Schema : DynamicContent
Type: object
Title: DynamicContent
Show Source
Nested Schema : rules
Type: array
The dynamic content's rules.
Show Source
Nested Schema : DynamicContentRule
Type: object
Title: DynamicContentRule
Show Source
Nested Schema : criteria
Type: array
The criteria of the dynamic content rule.
Show Source
Nested Schema : Criterion
Type: object
Title: Criterion
Show Source
Nested Schema : ImportedFile
Type: object
Title: ImportedFile
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Create a new landing page:


POST /api/REST/1.0/assets/landingPage
Content-Type: application/json 
			

Request body:


{
    "name": "My Landing Page",
    "htmlContent": {
        "type": "RawHtmlContent",
        "html": "<html><body><div>Here is some sample text.</div></body></html>",
        "metaTags": []
    }
}
			

Response:


{
  "type": "LandingPage",
  "x_e10_previewUrl": "https://<yourPod>.eloquapreview.com/Preview.aspx<yourId>",
  "x_e10_previewExpiryDate": "1475865025",
  "currentStatus": "Draft",
  "id": "55",
  "createdAt": "1475864725",
  "createdBy": "9",
  "depth": "complete",
  "folderId": "1265",
  "name": "My Landing Page",
  "permissions": "fullControl",
  "updatedAt": "1475864725",
  "updatedBy": "9",
  "contentSections": [
    
  ],
  "deployedAt": "1475864725",
  "dynamicContents": [
    
  ],
  "htmlContent": {
    "type": "RawHtmlContent",
    "html": "<html><body><div>Here is some sample text.</div></body></html>"
  },
  "hyperlinks": [
    
  ],
  "images": [
    
  ],
  "layout": "",
  "refreshedAt": "1475864725",
  "style": ""
}
			
Back to Top