So I have an image gallery in one of my collections. Basically just an array of images like such:
[image-gallery] => Array
(
[0] => Array
(
[fileId] => 5f0270c61704e771a3ea47f1
[url] => https://uploads-ssl.webflow.com/image1.png
[alt] =>
)
[1] => Array
(
[fileId] => 5f02708ed50fbd1dc9af0f69
[url] => https://uploads-ssl.webflow.com/image2.jpeg
[alt] =>
)
)
I would like to be able to delete just one image out of this. There doesn’t seem to be an API call for this. I would assume the way to do this would be to aggregate all the URLs from the existing image-gallery EXCEPT the one that is needed to be deleted, and then use PATCH to update the item.
Is that the best way to do it? I can not think of another way at this point in time.
Thanks in advance for your help!
Here is my site Read-Only: LINK
(how to share your site Read-Only link)