Skip to main content
PATCH
/
roles
/
{id}
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.roles.update("id", {});
}
main();
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID of the role to update.

Body

name
string

Name of this role.

description
string

Description of this role.

Response

Role successfully updated.

id
string

ID for this role.

name
string

Name of this role.

description
string

Description of this role.