Get Channel Roles
    • Dark
      Light
    • PDF

    Get Channel Roles

    • Dark
      Light
    • PDF

    Article summary

    Get
    /api/v1/channels.roles

    Lists all user's roles in the channel.

    Changelog

    VersionDescription
    0.65.0Added
    Query parameters
    roomId
    string

    The room id. It is required if the roomName is not provided.

    Exampledlpfuijw7ej
    roomName
    string

    The room name. It is required if the roomId is not provided.

    Examplegeneral
    Responses
    200

    OK

    Example 1
    {
      "roles": [
        {
          "_id": "rGNoXwYuZshq9FENQ",
          "rid": "WDuJLFkjwk6L7LdFC",
          "u": {
            "_id": "rbAXPnMktTFbNpwtJ",
            "username": "roxie"
          },
          "roles": [
            "owner"
          ]
        },
        {
          "_id": "64ef8a982c26843a68c1f7ae",
          "rid": "WDuJLFkjwk6L7LdFC",
          "u": {
            "_id": "5fRTXMt7DMJbpPJfh",
            "username": "test.test",
            "name": "Testtest"
          },
          "roles": [
            "leader"
          ]
        }
      ],
      "success": true
    }
    Expand All
    object
    roles
    Array of object
    object
    _id
    string
    rid
    string
    u
    object
    _id
    string
    username
    string
    name
    string
    roles
    Array of string
    string
    success
    boolean

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.