Rename Key

This API endpoint is used to rename a key within a specific bucket in the NexusRunDB database. It allows you to update the key's ID while keeping the value intact.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
  • The Master access key or any access keys with "read_write_key" permissions (or tokens generated for these access keys) have the ability to rename the ID of a key within a NexusRunDB database bucket.
  • You need to provide the new key name in the request body. The new key name should be included as part of the request payload to specify the desired new ID for the key.
  • If there is already a key with the same key ID existing in the bucket, attempting to rename a key to the same ID will result in a BadRequest (400) response. This indicates that the operation cannot be completed as it would lead to a conflict with an existing key. In such cases, you would need to choose a unique key ID for the renamed key to avoid the conflict.
  • The maximum length for a key ID is 250 bytes, and the forward slash (/) character is not allowed in the key ID. When renaming a key in a NexusRunDB database bucket, make sure that the new key ID adheres to these specifications.
  • Unicode characters are allowed in the new key ID.
Path Params
string
required

This is the unique database id you provided while creating database.

string
required

This is short name for the database location. This will be shown when new database is created at portal.

string
required

Specifies bucketid where the key id is stored.

string
required

Specifies the key to replace with new id.

Body Params
string

New keyid to be passed in BODY. Max length for new keyid is 250 bytes and forward slash ( / ) is not allowed.

Headers
string

You need to pass either "Basic 'accesskey:accesssecret'" (base 64 encoded) or "Bearer {token}" authorization header.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json