Roles
Roles are pre-defined permission sets that are controlled by the Identity and Access Management (IAM) service
get
Retrieve pre-defined roles
Authorizations
Responses
200
List of pre-defined roles
application/json; charset=utf-8
403
Missed authorization header token
application/json; charset=utf-8
get
GET /me/roles HTTP/1.1
Host: api.getsumer.com
Authorization: Bearer JWT
Accept: */*
{
"roles": [
{
"id": "text",
"name": "text",
"permissions": [
"text"
],
"tools": [
"text"
]
}
]
}
put
Update the User's assigned permissions over a Dapp
Authorizations
Path parameters
dappIdstringRequired
userIdstringRequired
Body
Responses
202
User permissions successfully updated over specified Dapp
application/json; charset=utf-8
Responseboolean
403
Missed authorization header token
application/json; charset=utf-8
put
PUT /me/dapps/{dappId}/users/{userId}/roles HTTP/1.1
Host: api.getsumer.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"roles": [
{
"id": "text",
"tools": [
"text"
]
}
]
}
true
Last updated
Was this helpful?