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 #

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 #

  • public_id: current public_id of the asset to rename
  • new_public_id: new public_id of the asset

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 #