Hi all,
trying to clone an existing page via https://developers.hubspot.com/docs/methods/pages/post_pages_page_id_clone results in
{
“correlationId”: “c21fa57b-1472-4f94-a68c-9862dedb9886”,
“message”: “New cloned content must be specified.”,
“requestId”: “81ea18ecb626c7e31822fb6d1155e78c”,
“status”: “error”
}
Now, where is the proper documentation to the call? I am happy to specify any content if I had a hint on what is required…
Thanks
Seems like you must provide data in the body as provided in
developers.hubspot.com
PUT /content/api/v2/pages/:page_id - Updates the Page in the database. If not all the fields are included in the body, we will only update the included fields.
Hi @Steffen,
Apologies for the delayed response.
I’m glad you found a solution; sorry that our documentation was incomplete. I have made a note to have it updated.
Through my testing, I confirmed that a slug must be defined for the endpoint to return a 201 Created code:
{
"slug": "my-api-demo-page-clone-slug"
}