Bulk change post template

As per the title, is there a way to bulk-change post templates? I have around 60 posts on my website and want to change the template of all of them from “Default” to “With Sidebar” (a custom one).

You’d need to use the Admin API for that. (I recommend the SDK to make that interaction easier.) Basically, you need to loop through all the posts and set the post_template (I think that’s the key? You’ll need to grab a post and check.), and then update.

Oh, just saw that this is in Using Ghost, not Developer help.
The ghost admin panel doesn’t give you a way to do this except one at a time.


Ah, that’s annoying. Thanks anyway!