Sumer Docs
  • 👋Welcome to Sumer
  • Overview
    • 💡What we do
    • ✨Our Features
  • Fundamentals
    • 🛠️Getting set up
    • 💻DApp Starter Kit
  • Sumer SDK
    • 🚀Quickstart
  • API Reference
    • 👁️‍🗨️Overview
    • Alerts
    • Roles
    • Users
  • Support
    • ⁉️FAQs
    • 👩‍🔧Contact our Team
    • 😁Leave Feedback
  • Use Cases
    • ⛓️Web3 projects
  • References
    • 📖Privacy Policy
    • 🍪Cookie Policy
    • 📄Terms & Conditions
Powered by GitBook
On this page

Was this helpful?

  1. API Reference

Roles

Roles are pre-defined permission sets that are controlled by the Identity and Access Management (IAM) service

PreviousAlertsNextUsers

Last updated 2 years ago

Was this helpful?

  • GET/me/roles
  • PUT/me/dapps/{dappId}/users/{userId}/roles
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