Service: UpdateLandingPage

The UpdateLandingpage service allows you to update existing landing pages within Flexmail.

Service Details

SOAP Action: UpdateLandingPage
SOAP Return Object: UpdateLandingPageResp

Input

The following table describes the parameters used for calling the UpdateLandingPage service.

Table: instance of UpdateLandingPageReq

Parameter Mandatory Type Description
header Y APIRequestHeader Header for authentication
landingPageType Y LandingPageType Landing page type

Output

The following table describes the parameters returned from the UpdateLandingPage service.

Table: instance of UpdateLandingPageResp

Parameter Mandatory Type Description
header / APIResponseHeader Header containing authentication information
errorCode / Integer Numerical value of the error
errorMessage / String Short literal description of the error

Table: response codes of UpdateLandingPageResp.

0 No error
220 Authentication error, see header object for detailed information
221 Landing page id is mandatory
222 Landing page name is mandatory
223 Invalid landing page id
224 Internal error

Example

This example shows you the update of a landing page with id 1046. We are updating the name and the text of the landing page.

<?php
$header->userId = USER_ID;
$header->userToken = USER_TOKEN;

$updateLandingPageReq->header = $header;
$updateLandingPageReq->landingPageType->landingPageId = 1;
$updateLandingPageReq->landingPageType->landingPageName = "my updated landing page";
$updateLandingPageReq->landingPageType->landingPageText = urlencode("<html>update</html>");

$updateLandingPageResp = $SoapClient->__soapCall("UpdateLandingPage", array($updateLandingPageReq));

if ($updateLandingPageResp->errorCode == 0) {
    echo "Landing page updatded";
} else {
    echo "Landing page update failed: " . $updateLandingPageResp->errorMessage;
}

?>