Official Plugins (Kuzzle v1.x)
Cloudinary v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

rename #

Renames the specified asset


Query Syntax #

HTTP #

Copied to clipboard!
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 #

Copied to clipboard!
{
  "controller": "cloudinary/assets",
  "action": "rename",

  "public_id": "old_name",
  "new_public_id": "new_name"
}

Arguments #


Response #

Copied to clipboard!
{
  "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 #