Get All Roles
Retrieves a list of roles associated with the authenticated user.
Endpoint Information
URL:
https://testinium.io/Testinium.RestApi/api/roles
Method:
GET
Authentication: Required (
Bearer Token
)Header: Required (
current-company-id: <your_company_id>
)
Response
Response Fields
Field
Type
Description
entity_id
Integer
The unique identifier for the role.
name
String
The name of the role (e.g., ROLE_ADMIN
).
clean_name
String
A human-readable name for the role (e.g., ROLE ADMIN
).
Error Codes
HTTP Status
Code
Message
400
BAD_REQUEST
Invalid request parameters.
401
UNAUTHORIZED
The user is not authorized.
403
FORBIDDEN
Insufficient permissions.
404
NOT_FOUND
Resource not found.
500
INTERNAL_ERROR
Server error.
Example Request
Last updated