HomeGuidesAPI Reference
API Reference

Get Next Available Role ID

Returns the next available role ID for creating a new role. IDs 0 (default) and 1 (unknown) are reserved for system default roles. Valid custom role IDs range from 2-255 (max 254 custom roles). The algorithm scans existing roles starting from the last assigned ID, wrapping from 255 back to 2 when necessary to find an unused slot.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Responses

401

Unauthorized - User not authenticated or session expired. Re-authenticate to obtain a valid session cookie.

403

Forbidden - User lacks READ or READ_WRITE permission for roles management.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json