Modifying Pages

Learn to update and delete landing pages using the Pages API.

Update a page

After creating a landing page, we might want to make some changes to it. The Pages API provides a quick solution to this problem. By sending a PATCH request to the landing pages endpoint, we can modify any page we have previously created.

The base URL for this endpoint is:

https://api.hubapi.com/cms/v3/pages/landing-pages/{PAGE_ID}

Request parameters

Apart from a required path parameter, this endpoint also accepts many optional body parameters. The table below discusses some of these parameters:

Parameter

Type

Parameter Type

Category

Description

id

string

path

required

The ID of the page we want to update

name

string

body

optional

The name of the page

templatePath

string

body

optional

The path of the template being used to create the page. This may be a custom template or a default template provided by HubSpot.

slug

string

body

optional

The URL slug of the page

domain

string

body

optional

A registered domain for the page URL

Let’s try making a request to this endpoint. ...