Update page template via API ?

SOLVE
CP-BWG
Contributor

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

Accepted Solutions
dennisedson
Solution
Community Manager

@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




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content

View solution in original post

0 Upvotes
5 Replies 5
dennisedson
Community Manager

@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




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes
CP-BWG
Contributor

@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
Community Manager

@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




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content

View solution in original post

0 Upvotes
CP-BWG
Contributor

@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
Community Manager

@CP-BWG 

Should be good to go with the batch endpoint!

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes