Add New Permission

This API endpoint is used to add an access key with specific permission to a bucket in the NexusRunDB database.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
  • To allow public access to a bucket in the NexusRunDB database, you can pass the access key as "*"(asterisk). This indicates that the bucket can be accessed publicly without requiring a specific access key.
  • The available permissions that can be assigned to an access key for a bucket in the NexusRunDB database are as follows:
    • "read_key": Allows read access to the bucket's keys.
    • "read_write_key": Grants both read and write access to the bucket's keys.
    • "list_all_keys": Enables the listing of all keys within the bucket.
    • "delete_key": Permits the deletion of keys within the bucket.
    • "bucket_info": Provides access to retrieve information about the bucket.
      These permissions determine the level of access and operations that can be performed on the bucket using the assigned access key.
  • Please note that only the Master access key or a token generated for the Master access key is allowed to access this endpoint.
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 bucket it on which the new access key permission will be added.

string
required

Specifies which permission needs to be added to access key. It should be any one of "read_key", "read_write_key", "list_all_keys", "delete_key", "bucket_info".

string
required

Specifies access key which gets the new permission. To allow public access for a permission, pass "*" as access key.

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