How to list by multiple public IDs via the Admin API

In order to list by multiple public IDs via the Admin API, you can use the following code:
GET http://api.cloudinary.com/v1_1/{cloud_name}/resources/{resource_type}/{type} with public_ids parameter containing a comma separated list of public ids or multiple public_ids parameter (?public_ids[]=p1&public_ids[]=p2).
For example:

https://api.cloudinary.com/v1_1/{cloud_name}/resources/image/upload?public_ids[]=image1&public_ids[]=image2
https://api.cloudinary.com/v1_1/{cloud_name}/resources/image/upload?public_ids=image,image2

This can be also done via one of our integration libraries. For example in Rails:

Cloudinary::Api.resources_by_ids(["image1", "imag2"])
Have more questions? Submit a request

Comments

Powered by Zendesk