your_private_api_key:
Note the colon in the end.fileId
of the uploaded file. fileId
is returned in list files API and upload API{"successfullyUpdatedFileIds": ["5e21880d5efe355febd4bccd","5e1c13c1c55ec3437c451403","5f4abf6fae77ae7f0acda3d1","5f207bd1bd2741182ceadd55"]}
{"message": "The requested file(s) does not exist.","help": "For support kindly contact us at [email protected] .","missingFileIds": ["5e21880d5efe355febd4bccd","5e1c13c1c55ec3437c451403"]}
In case of error, you will get an error code along with the error message. On success, you will receive a 200
status code with an empty body.
Here is the example request to understand the API usage.
curl -X POST "https://api.imagekit.io/v1/files/removeTags" \-H 'Content-Type: application/json' \-u your_private_key: -d '{"fileIds" : ["5e21880d5efe355febd4bccd","5e1c13c1c55ec3437c451403","5f4abf6fae77ae7f0acda3d1","5f207bd1bd2741182ceadd55"],"tags" : ["tag-to-remove-1","tag-to-remove-2"]}'