DEPRECATED: This API version is deprecated. Please migrate to v2. See https://www.unkey.com/docs/api-reference/v1/migration for more information.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the key.
1The roles you want to set for this key. This overwrites all existing roles.
Setting roles requires the rbac.*.add_role_to_key permission.
1[
{ "id": "role_123" },
{ "name": "dns.record.create" },
{
"name": "dns.record.delete",
"create": true
}
]