APIs & Integrations

Steffen1
Member

Clone page error: "New cloned content must be specified."

SOLVE

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

0 Upvotes
1 Accepted solution
Steffen1
Solution
Member

Clone page error: "New cloned content must be specified."

SOLVE

Seems like you must provide data in the body as provided in

Update a page | COS Page Publishing API

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.

View solution in original post

0 Upvotes
2 Replies 2
IsaacTakushi
HubSpot Employee
HubSpot Employee

Clone page error: "New cloned content must be specified."

SOLVE

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"
}

Isaac Takushi

Associate Certification Manager
0 Upvotes
Steffen1
Solution
Member

Clone page error: "New cloned content must be specified."

SOLVE

Seems like you must provide data in the body as provided in

Update a page | COS Page Publishing API

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.

0 Upvotes