Get All Roles
GET/users/roles
Fetches available SDP roles, such as owner, financial controller, business user, and developer.
Responses
- 200
- 401
- 403
OK
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
roles string[]
{
"roles": [
"developer",
"financial_controller",
"business",
"owner"
]
}
{
"roles": [
"developer",
"financial_controller",
"business",
"owner"
]
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
error string
extras object
status number
message string
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Forbidden
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
error string
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Loading...