Help finding the correct method

Hello,

I need help finding the correct API to add divisions to a user role

I found the API /api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}

but it seems that this API inserts roles in a division
but i need to add divisions in a role

the image below can help to understand

Divisions are only applied to an entity (e.g. a user) in the context of a role; they are not applied to roles directly. The screenshot you shared above allows division assignment because you're editing a specific entity's configuration. When you edit the role itself, there is no opportunity to assign divisions.

Additionally, you can use your browser's developer tools to inspect the requests that are made by the UI to see what API it's using to complete the actions in the UI. This will demonstrate which API endpoint to use and how to use it to accomplish the same behavior in your own app.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.