Remove a hosted page image

Overview

Remove an image from the hosted page.

Use this to clean up.

You'll need the image reference.

The image is removed, and you get the page's saved settings back. Without imageType nothing is removed and you just get the settings.

Prerequisites

Base URL

EnvironmentURL
Productionhttps://production-api.shoutaboutus.com
Developmenthttps://development-api.shoutaboutus.com

Endpoint

POST /api/v1/custom-landing-page/deleteFile

Authentication

Partner or Account token

  • company_id must be inside your own account tree. A Partner token can use any account under the partner; an Account token only its own account.
  • An account outside your tree, or one that doesn't exist, is rejected with 422.
  • An account outside your tree, or one that doesn't exist, is rejected with 422.

Rate limit

This endpoint has no rate limit.

Request parameters

None.

Request body

FieldTypeRequiredDescription
company_idintegerYesThe account. Must exist and be inside your account tree.
imageTypestringNoWhich image to remove: logo (header logo), thumbnail (video thumbnail) or footerLogo. Left out: nothing is removed.

Request payload

{
  "company_id": 5994,
  "imageType": "logo"
}

Response body

The payload is inside data.

FieldTypeDescription
statusstringsuccess.
messagestringImage deleted successfully.
dataobject or arrayThe page's saved settings after the change, or an empty array [] when the page has never been configured.
data.headerPropsobjectHeader settings.
data.headerProps.logoImagestringURL of the header logo, or "" when there is none.
data.headerProps.logoURLstringHeader logo setting, saved as headerProps.logoURL.
data.buttonPropsobjectButton settings.
data.buttonProps.startButtonTextstringText of the start button.
data.buttonProps.startButtonBackgroundColorstringStart button background colour.
data.buttonProps.startButtonFontColorstringStart button text colour.
data.buttonProps.contactButtonTextstringText of the contact button.
data.buttonProps.contactButtonBackgroundColorstringContact button background colour.
data.buttonProps.contactButtonFontColorstringContact button text colour.
data.buttonProps.contactButtonURLstringWhere the contact button links to.
data.contentPropsobjectHeading, text and video.
data.contentProps.youtubeThumbnailstringURL of the video thumbnail, or "" when there is none.
data.contentProps.contentHeadingstringThe main heading.
data.contentProps.contentDescriptionstringThe text under the heading.
data.contentProps.youtubeUrlstringThe video URL.
data.contentProps.hideVideoTogglebooleanHide the video.
data.sliderPropsobjectLogo slider.
data.sliderProps.sliderHeadingstringHeading of the logo slider.
data.sliderProps.sliderImagesTogglebooleanShow the logo slider (the partners gallery images).
data.planPropsobjectPlans section.
data.planProps.planTextstringHeading of the plans section.
data.planProps.planTogglebooleanShow the plans section.
data.planProps.customPricingButtonTogglebooleanShow the custom pricing button.
data.faqPropsobjectFAQ section.
data.faqProps.faqTogglebooleanShow the FAQ section (FAQs from Save FAQs).
data.footerPropsobjectFooter.
data.footerProps.footerLogostringFile name of the footer logo, or "" when there is none.
data.footerProps.footerTextstringFooter text.
data.footerProps.copyrightTextstringCopyright line.
data.footerProps.socialIconTogglebooleanShow the social icons in the footer.
data.howItWorksPropsobjectHow-it-works section.
data.howItWorksProps.howItWorksTextstringHeading of the how-it-works section.
data.howItWorksProps.howItWorksTogglebooleanShow the how-it-works section (content from Save how-it-works content).
data.testimonialsPropsobjectTestimonials section.
data.testimonialsProps.testimonialsTextstringHeading of the testimonials section.
data.testimonialsProps.testimonialsTogglebooleanShow the testimonials section (content from Save testimonials).
data.referralCodestringThe account's active referral code, or "".

Response payload

{
  "data": {
    "status": "success",
    "message": "Image deleted successfully.",
    "data": {
      "headerProps": {
        "logoURL": "",
        "logoImage": ""
      },
      "buttonProps": {
        "startButtonText": "Register Now",
        "startButtonFontColor": "#ffffff",
        "startButtonBackgroundColor": "#1459c4",
        "contactButtonText": "Contact sales",
        "contactButtonFontColor": "#1459c4",
        "contactButtonBackgroundColor": "#ffffff",
        "contactButtonURL": ""
      },
      "contentProps": {
        "contentHeading": "Stop dealing with the headache of responding to your reviews",
        "contentDescription": "Save time, boost your ranking, and build brand loyalty with a personalized review response service that delivers quick and professional replies to your customers.",
        "youtubeThumbnail": "https://d2ny6zb7otrnhl.cloudfront.net/landing_page_logo/Qm3Xv8Lp2Rt6Yw1Zn4Bc7Df0Gh9Jk5Ls.png",
        "youtubeUrl": "https://response-scribe.s3.us-east-1.amazonaws.com/assets/sample/ResponseScribe.mp4",
        "hideVideoToggle": false
      },
      "sliderProps": {
        "sliderHeading": "Trusted by over 10,000 local businesses",
        "sliderImagesToggle": false
      },
      "planProps": {
        "planText": "Choose the plan that fits your needs",
        "planToggle": false,
        "customPricingButtonToggle": false
      },
      "faqProps": {
        "faqToggle": false
      },
      "footerProps": {
        "footerText": "Personalized review response service for local businesses.",
        "copyrightText": "© 2023 Shout About Us. All Rights Reserved",
        "socialIconToggle": false,
        "footerLogo": "Hn2Kd7Wq4Lp9Xc3Vb6Mz1Ty8Ra5Su0Ge.png"
      },
      "howItWorksProps": {
        "howItWorksText": "How it works",
        "howItWorksToggle": false
      },
      "testimonialsProps": {
        "testimonialsToggle": false,
        "testimonialsText": "You're in good company"
      },
      "referralCode": ""
    }
  }
}

Examples

Success payload

Header logo removed: see Response payload.

The page has never been configured:

{
  "data": {
    "status": "success",
    "message": "Image deleted successfully.",
    "data": []
  }
}

Error payload

422 company_id is missing

{
  "message": "The company id field is required.",
  "errors": {
    "company_id": [
      "The company id field is required."
    ]
  }
}

422 Account outside your tree

{
  "message": "The selected company id does not belong to your company hierarchy.",
  "errors": {
    "company_id": [
      "The selected company id does not belong to your company hierarchy."
    ]
  }
}

422 imageType isn't allowed

{
  "message": "The selected image type is invalid.",
  "errors": {
    "imageType": [
      "The selected image type is invalid."
    ]
  }
}
StatusMeaning
200The image was removed; the page's settings.
401The token is missing, expired or invalid.
422company_id is missing, doesn't exist or is outside your tree, or imageType isn't allowed.
500Unexpected server error, or the image couldn't be removed.

Example request

curl --request POST \
  --url "https://production-api.shoutaboutus.com/api/v1/custom-landing-page/deleteFile" \
  --header 'Authorization: Bearer <bearer-token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"company_id": 5994, "imageType": "logo"}'

Did this page help you?