# Update page template via API ?

**URL:** <https://community.hubspot.com/t/update-page-template-via-api/47743>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [November 30, 2021, 4:32pm UTC](https://community.hubspot.com/t/update-page-template-via-api/47743 "2021-11-30T16:32:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CP-BWG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cp-bwg/32/87988_2.png) [@CP-BWG](https://community.hubspot.com/u/CP-BWG)\
**Post date:** [November 30, 2021, 4:32pm UTC](https://community.hubspot.com/t/update-page-template-via-api/47743/1 "2021-11-30T16:32:31Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [December 1, 2021, 7:04pm UTC](https://community.hubspot.com/t/update-page-template-via-api/47743/2 "2021-12-01T19:04:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CP-BWG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cp-bwg/32/87988_2.png) [@CP-BWG](https://community.hubspot.com/u/CP-BWG)\
**Post date:** [December 1, 2021, 9:22pm UTC](https://community.hubspot.com/t/update-page-template-via-api/47743/3 "2021-12-01T21:22:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [December 1, 2021, 9:26pm UTC](https://community.hubspot.com/t/update-page-template-via-api/47743/4 "2021-12-01T21:26:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CP-BWG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cp-bwg/32/87988_2.png) [@CP-BWG](https://community.hubspot.com/u/CP-BWG)\
**Post date:** [December 7, 2021, 2:31pm UTC](https://community.hubspot.com/t/update-page-template-via-api/47743/5 "2021-12-07T14:31:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [December 9, 2021, 4:13pm UTC](https://community.hubspot.com/t/update-page-template-via-api/47743/6 "2021-12-09T16:13:53Z")

</div>

@CP-BWG

Should be good to go with the batch endpoint!
