APIs & Integrations

CP-BWG
Contributor

Update page template via API ?

SOLVE

I have tried unscuccessufly to send page template and tempalte path paramters in page/CMS APIs, both V2 and V3.  Certainly there must be an easier way than manually going into hundreds of pages in the web interface and swapping the page template. Does anyone have a suggestion on updated page templates in an API method?

0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Update page template via API ?

SOLVE

@CP-BWG 

It should be.  If you were to use just the update an individual page endpoint rather than the batch endpoint, it will work ( I tested ).

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show

View solution in original post

0 Upvotes
5 Replies 5
CP-BWG
Contributor

Update page template via API ?

SOLVE

@dennisedson I just tested myself. Looks like I had the wrong field names carried over from v2. Thanks for all your help!

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Update page template via API ?

SOLVE

@CP-BWG 

Should be good to go with the batch endpoint!

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes
CP-BWG
Contributor

Update page template via API ?

SOLVE

@dennisedson I appreciate you looking into this - I agree this should be an editable field in V3... please let me know when this is added 🙂

0 Upvotes
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Update page template via API ?

SOLVE

@CP-BWG 

It should be.  If you were to use just the update an individual page endpoint rather than the batch endpoint, it will work ( I tested ).

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Update page template via API ?

SOLVE

@CP-BWG 

I am looking into this.  I would expect that you should be able to use the batch update endpoint on the V3, but I tried myself unsuccessfully.  Will report back when I have more info.

Thanks,

Dennis




HubSpot Community Developer ShowMake sure to subscribe to our YouTube channel
where you can find the HubSpot Community Developer Show
0 Upvotes