Get Assignable Roles
https://app.fossa.com/api/roles/assignableGet roles that can be assigned by the current user. Returns only roles with equal or fewer permissions than the requesting user.
Responses
200OKassignableOrgRolesinteger[]Array of role IDs that can be assigned for organization-scoped roles
assignableTeamRolesobjectObject mapping team IDs to arrays of role IDs that can be assigned for those teams
403ForbiddenuuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
500Server ErroruuidstringUnique identifier associated with the error
codeintegerfossa specific error code
messagestringmessage associated with this error
namestringname of the error
httpStatusCodeintegerhttp status code number
Try this endpoint
Build a request and run it against app.fossa.com.
Stored in this browser for 24 hours. Try It uses a docs proxy for CORS and does not store tokens server-side.
GET https://app.fossa.com/api/roles/assignablecurl --request GET \ --url 'https://app.fossa.com/api/roles/assignable' \ --header 'accept: application/json' \ --header 'authorization: Bearer YOUR_API_TOKEN'Real request. Mutating methods can change data.