Forum Discussion

Eliot_Cole's avatar
Eliot_Cole
Iron Contributor
Feb 15, 2024
Solved

REST API - Unable To Create Folder In Newly Created Team Site SiteAssets Library (Owned)

Incident When I try to create a subfolder in the SiteAssets library with the following call, I keep getting unauthorised (or similar) responses.   POST url https://TENANT_SUBDOMAIN.sharepoint....
  • Eliot_Cole's avatar
    Feb 15, 2024

    OK, it looks like there is an answer, and I got it from the 365 / Power Platform community.

     

    Essentially, since there is no requirement for the Site Assets until someone has looked at anything, then the library is either not enabled or provisioned in some way.

     

    annajhaveri, over at the Power Automate community supplies the actual call needed to do this:

     

    POST - _api/web/lists/ensureSiteAssetsLibrary

     

    This then allows actions on that library without loading the site.

Resources