REST API - Accessing Landing Pages

Version 2

    The REST API supports create, retrieve, update and delete operations for landing pages.

     

    Accessing Landing Pages

    • GET  /assets/landingPage/{id}?depth={depth}

     

    Response

    The response from this call looks as follows

     

    {
      "type": "LandingPage",
      "currentStatus": "Draft",
      "id": "2359",
      "createdAt": "1352599651",
      "createdBy": "340",
      "depth": "complete",
      "folderId": "310",
      "name": "sample landing page",
      "permissions": "fullControl",
      "updatedAt": "1352599651",
      "updatedBy": "340",
      "deployedAt": "1352599932",
      "htmlContent": {
        "type": "RawHtmlContent",
        "html": "<html><head><\/head><body>Sample Landing Page<\/body><\/html>"
      },
      "refreshedAt": "1352599932",
      "style": ""
    } 
    

     

    Properties

     

    Name

    Type

    Description

    Notes

    Validations

    type"LandingPage"
    deployedAtintegerDateRequirement
    htmlContentHtmlContentThe raw HTML content for the landing page
    micrositeIdintegerThe unique identifier for this page's micrositeIdRequirement
    refreshedAtintegerDateRequirement
    relativePathstring
    stylestring
    accessedAtintegerDateRequirement
    createdAtintegerReadOnlyDateRequirement
    createdByintegerReadOnlyIdRequirement
    currentStatusstring
    depthRequestDepthEnumRequirement
    descriptionstring
    folderIdintegerIdRequirement
    idintegerThe unique identifier for the landing pageIdRequirement
    namestring
    permissionsInstancePermissionsEnumRequirement
    updatedAtintegerReadOnlyDateRequirement
    updatedByintegerReadOnlyIdRequirement

     

     

    Related Operations

    • POST :  /assets/landingPages
    • PUT :  /assets/landingPages/{id}
    • DELETE :  /assets/landingPages/{id}
    • GET (list) :  /assets/landingPages?search={searchTerm}&page={page}&count={count}&orderBy={orderBy}

     

    Sample Code