Adds, removes, or replaces tags on multiple assets
Applies a tag command to the given assets, addressing them by public ID.
The number of tags multiplied by the number of public IDs must not exceed 10,000.
Basic authentication using Cloudinary API Key and API Secret.
In: header
Path Parameters
The cloud name of your product environment.
The type of resource (image, video, or raw).
Value in
- "image"
- "video"
- "raw"
Request Body
application/json
The tag command, the tags to apply, and the assets to apply them to.
A tag command plus the assets it applies to.
The public IDs of the assets to apply the operation to. At most 1000 are processed per request; any beyond the first 1000 are ignored rather than rejected. Public IDs that do not exist, or that the caller lacks update permission for, are skipped rather than failing the request, so the returned public_ids may be shorter than the requested list.
items <= 1000All supported delivery types.
The tag operation to apply.
addadds the given tags, leaving existing tags untouched.removeremoves the given tags, leaving other tags untouched.replaceoverwrites the full tag list with the given tags.remove_allclears every tag. Thetagsfield is ignored.
Value in
- "add"
- "remove"
- "replace"
- "remove_all"
The tag names to apply. Required for add, remove, and replace; ignored for remove_all. A tag name must not contain a comma.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1_1/my_cloud/image/tags" \ -H "Content-Type: application/json" \ -d '{ "command": "add", "public_ids": [ "sample", "product_image", "banner_2023" ], "tags": [ "animal", "dog" ] }'{ "public_ids": [ "sample", "product_image", "banner_2023" ]}Create derived images from multi-page file POST
Generates derived images for each of the individual pages/frames in a multi-page/frame file (such as a PDF or animated image).
Adds or clears contextual metadata on multiple assets POST
Applies a contextual-metadata command to the given assets, addressing them by public ID.