getRoles()

Description

Delete the account based on the Bearer token. The system will also delete the corresponding user object inside the Users table.

Request

Make sure you send adminToken is passed to createClient() method as this request requires Deskree Admin Token. Read more about authorization. Read more about Deskreee Admin Token.

Parameters

No parameters needed

Example

const roles = await client.auth().getRoles()

Response

No content

Example

{
    "data": [
        {
            "uid": "njiasd91n2mkoaskmoadsko",
            "name": "admin"
        }
    ]
}

Last updated

Was this helpful?