Announcements
Hi all,
I'm working on automating the creation of SharePoint pages. I am trying to create a SharePoint page from a page template but my rest api call keeps failing.
This is what I have so far:
What I'm I missing here?
Thanks,
@_sourcecod3_
Try the boverwrite paramater
_api/web/getfilebyserverrelativeurl('/sites/development/SitePages/blankTemplate.aspx')/copyto(strnewurl='/sites/development/SitePages/DynamicPage.aspx',boverwrite=false)
Reference:
Files and folders REST API reference | Microsoft Learn
@SudeepGhatakNZ Thank you! that worked perfectly, now i just need to figure out how to add content and images via the flow also. Cheers!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Mohsin Ali 389
11manish 345 Super User 2026 Season 2
M Bilal Khan 308