Skip to main content
PUT
/
auth
/
keys
/
{keyId}
Update API key permissions
curl --request PUT \
  --url http://localhost:3000/auth/keys/{keyId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "permissions": {
    "read": true,
    "write": true,
    "admin": true
  },
  "scope": {}
}
'

Authorizations

X-API-Key
string
header
required

API key for authentication. Format: zdb_your_api_key_here

Path Parameters

keyId
string<uuid>
required

API key ID

Body

application/json
permissions
object
required
scope
object

Response

API key updated successfully