PUT location media
PUT/location/media/:id
Use this method to update all the media information for this location. All null paramters are getting deleted, except for custom images, since these are simply used to update the order in which they appear in the gallery, rather than to add or delete them.
If you want to preserve them, use the get method first to obtain the current set of data and replace only the fields you want.
Sending null for the customImages field will simply cause the api to ignore a new ordering, whereas when sending an array, it should correspond to the extact same content of the array of customImages ids (but could have a different order), so the api can use it to define a new order based on the array sent.
If you want to preserve the order of the images in the gallery, either send null for the customImages field, or send the list of customImages ids in the exact order as they were retrieved from the api.
In case you want to update images or urls, use the corresponding update methods with their unique id you get from the GET call.
Request
Responses
- 200
OK