This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a media item in a specified gallery.
Note: When creating or updating image items in a pro gallery, the images must be uploaded or imported to the Wix Media Manager first, as the imageInfo
parameter currently only supports the Wix Media URL.
You can only call this method when authenticated as a Wix app or Wix user identity.
Gallery ID.
Item ID.
Media item to update.
Updated media item.
curl -X PATCH \
'https://www.wixapis.com/progallery/v2/galleries/2113aed5-8ebd-418a-a60b-74a799ce50e0/items/d02bd19a-c0a3-456a-9c82-32c08ceb6712' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"item": {
"title": "Newly Updated Item1",
"description": "Describe your image here1."
}
}'
{
"item": {
"id": "d02bd19a-c0a3-456a-9c82-32c08ceb6712",
"sortOrder": 1563813116.8060222,
"title": "Newly Updated Item1",
"description": "Describe your image here.",
"type": "IMAGE",
"image": {
"type": "WIX_MEDIA",
"imageInfo": {
"id": "11062b_12703ed9a6574547bcaed22b1ce44eef~mv2.jpeg",
"url": "https://static.wixstatic.com/media/11062b_12703ed9a6574547bcaed22b1ce44eef~mv2.jpeg",
"height": 4298,
"width": 6446
},
"focalPoint": {
"x": 0.5,
"y": 0.5
}
},
"createdDate": "2020-08-17T13:33:45Z",
"updatedDate": "2020-08-17T15:13:12Z",
"tags": {}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.