Authorizations
API key for authentication. Format: zdb_your_api_key_here
Path Parameters
API key ID
Response
API key updated successfully
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": {}
}
'Updates permissions for an existing API key
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": {}
}
'API key for authentication. Format: zdb_your_api_key_here
API key ID
API key updated successfully
Was this page helpful?