Define new role through API [RESOLVED]

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [x] Documentation issue or request

Current behavior

When I send a POST request to https://{squidex}/api/apps/{app}/roles/
with a payload {name: “{newRoleName}”}
I get a 403 (forbidden) callback

I added roles.create permission to the role of my client but the behavior stay the same

Expected behavior

I need to be able to add and delete role without using the UI of squidex

Environment

  • [ ] Self hosted with docker
  • [x] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: 2.x

No problem to get the roles with this method

The version is really old. I would try to give your client owner permission. But I will not provide a hotfix for such an old version.

1 Like

I understand, we plan to update to the last version soon.

Thanks for the answer.

1 Like

You could try the owner role.

It works with the owner role ty.

1 Like