Field | Type | Required | Description | Example |
---|---|---|---|---|
key_id |
str | ✔️ | The id of the key. | |
roles |
List[models.SetRolesRoles] | ✔️ | The roles you want to set for this key. This overwrites all existing roles. Setting roles requires the rbac.*.add_role_to_key permission. |
[ { "id": "role_123" }, { "name": "dns.record.create" }, { "name": "dns.record.delete", "create": true } ] |