APIs & Integrations

CP-BWG
投稿者

Update page template via API ?

解決

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 いいね!
1件の承認済みベストアンサー
dennisedson
解決策
HubSpot製品開発チーム
HubSpot製品開発チーム

Update page template via API ?

解決

@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 いいね!
5件の返信
CP-BWG
投稿者

Update page template via API ?

解決

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

0 いいね!
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Update page template via API ?

解決

@CP-BWG 

Should be good to go with the batch endpoint!

0 いいね!
CP-BWG
投稿者

Update page template via API ?

解決

@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 いいね!
dennisedson
解決策
HubSpot製品開発チーム
HubSpot製品開発チーム

Update page template via API ?

解決

@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 いいね!
dennisedson
HubSpot製品開発チーム
HubSpot製品開発チーム

Update page template via API ?

解決

@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 いいね!