Keys
Add Permissions
Add one or more permissions to a key.
POST
/
v1
/
keys.addPermissions
Adds permissions to a key. Existing permissions are not removed.
To use this endpoint, your root key must have the rbac.*.add_permission_to_key
and potentially the rbac.*.create_permission
permissions.
Changelog
Date | Changes |
---|---|
Jul 08 2024 | Introduced endpoint |
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
keyId
string
requiredThe id of the key.
Minimum length:
1
permissions
object[]
requiredThe permissions you want to add to this key
Response
200 - application/json
id
string
requiredThe id of the permission. This is used internally
name
string
requiredThe name of the permission
Was this page helpful?