Skip to main content
GET
/
entity_users
/
my_role
Get a role of this entity user
curl --request GET \
  --url https://api.sandbox.monite.com/v1/entity_users/my_role \
  --header 'Authorization: Bearer <token>' \
  --header 'x-monite-version: <x-monite-version>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "permissions": {
    "objects": [
      {
        "actions": [
          {
            "action_name": "read",
            "permission": "allowed"
          }
        ],
        "object_type": "comment"
      }
    ]
  },
  "status": "active"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-monite-version
string<date>
required

Response

Successful Response

id
string<uuid>
required

UUID role ID

created_at
string<date-time>
required

UTC datetime

updated_at
string<date-time>
required

UTC datetime

name
string
required

Role name

Minimum string length: 1
permissions
object
required

Access permissions

status
enum<string>
required

record status, 'active' by default

Available options:
active,
deleted