Modifying Pages
Learn to update and delete landing pages using the Pages API.
We'll cover the following...
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 |
| string | path | required | The ID of the page we want to update |
| string | body | optional | The name of the page |
| 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. |
| string | body | optional | The URL slug of the page |
| string | body | optional | A registered domain for the page URL |
Let’s try making a request to this endpoint. ...