Passer au contenu principal
POST
/
users
/
{id}
/
revoke-access
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.users.revokeAccess("id", {});
}
main();

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis

ID of the user.

Corps

session_id
string<session-id>

ID of the session to revoke.

Maximum string length: 50
preserve_refresh_tokens
boolean
défaut:false

Whether to preserve the refresh tokens associated with the session.

Réponse

Session deletion request accepted.