err:unkey:data:role_already_existspermissions.createRole didn’t create one. You get HTTP 409.
Example response
Likely causes
- You already created this role. Role names are unique per workspace, and separately per .
- The name differs only in case.
Adminclashes with an existingadmin.
How to fix
- Reuse the existing role (find it with
permissions.listRoles), or choose another name. - To change what a role grants, use
permissions.setRolePermissionson the existing role instead of creating a second one.
Related errors
err:unkey:data:role_not_found: a referenced role doesn’t exist.err:unkey:data:permission_already_exists: a permission slug collides.