APIs & Integrations

CP-BWG
Contributeur

Update page template via API ?

Résolue

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 Votes
1 Solution acceptée
dennisedson
Solution
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Update page template via API ?

Résolue

@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 ).

Voir la solution dans l'envoi d'origine

0 Votes
5 Réponses
CP-BWG
Contributeur

Update page template via API ?

Résolue

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

0 Votes
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Update page template via API ?

Résolue

@CP-BWG 

Should be good to go with the batch endpoint!

0 Votes
CP-BWG
Contributeur

Update page template via API ?

Résolue

@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 Votes
dennisedson
Solution
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Update page template via API ?

Résolue

@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 ).

0 Votes
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Update page template via API ?

Résolue

@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.

0 Votes