I have some code that creates new site pages.
Basically it uses a template and fills in the blanks.
However even though I'm putting in a path to an image stored in my site assets it doesn't change from the original picture. It is not giving me any errors but the images don't change.
Is this known problem?
Does anyone know how to change a banner image or image webpart on a modern site page using SharePoint REST?
hi @Mattw112IG I'm shure this post can help you
I hope this can helps.
I came across this too, but it is confusing to me.
When I go to "Update Item" it wants a list not site pages? It does look like I may be able to set using the "Update File Properties" command though. I will try that.
Also this is for just the banner I also have a web part on the page with an image I'd like to change.
mmm @Mattw112IG I was looking into official docs and it looks like that are not supported jet.
Not sure if site design is same as page changes?
I am able to customize most of the pages with text fields. Just the image field I am having a challenge with.
Also here's the part of my JSON with the image but I wonder if I have to know a Unique ID? I'm just setting the full path and name..("/sites/msd/IandI/MSDToolbox/SiteAssets/Logos/Clients/customer.png\"}). Not sure how I would find a unique ID for an image in site assets?