rename #
Renames the specified asset
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_plugin/cloudinary/assets/<public_id>?new_public_id=<new_name>
Method: PUT
Be aware that Cloudinary allows special characters in the public_id syntax. You may need to encode the public id with escape character
Other protocols #
{
"controller": "cloudinary/assets",
"action": "rename",
"public_id": "old_name",
"new_public_id": "new_name"
}
Arguments #
Response #
{
"status": 200,
"error": null,
"controller": "cloudinary/assets",
"action": "destroy",
"requestId": "<unique request identifier>",
"result": {
"public_id": "<new_public_id>",
"width": "<width>",
"height": "<height>",
"format": "<format>",
"resource_type": "<ressource_type>",
"created_at": "<creation_date>",
"tags": [
"<tag>"
],
"bytes": "<size>",
"type": "<type>",
"placeholder": "<placeholder>",
"url": "<url>",
"secure_url": "<secure_url>"
}
}
Possible Errors #
Edit this page on Github(opens new window)