Remove tags from multiple files in a single request.
Headers
Name
Type
Description
Authorization
string
base64 encoding of your_private_api_key:
Note the colon in the end.
Request Body
Name
Type
Description
fileIds
array
Each value should be a unique fileId of the uploaded file. fileId is returned in the list files API and upload API. Tags can only be removed from the current version of the file.
{"successfullyUpdatedFileIds": ["5e21880d5efe355febd4bccd","5e1c13c1c55ec3437c451403","5f4abf6fae77ae7f0acda3d1","5f207bd1bd2741182ceadd55" ],"errors": [ { fileId:"3e21880d5efe355febd4bccx", error:"Error in removing tags" }, { fileId:"5fc1c55efe355febddcda3d1", error:"Error in removing tags" } ]}
{"message": "The requested file(s) does not exist.","help": "For support kindly contact us at support@imagekit.io .","missingFileIds": ["5e21880d5efe355febd4bccd","5e1c13c1c55ec3437c451403" ]}
Response structure and status code
In case of an error, you will get an error code along with the error message. On success, you will receive a 200 status code with an array of successfully updated fileIds.
Examples
Here is the example request to understand the API usage.