Management API
TypeScript
import { ManagementClient } from "auth0"; async function main() { const client = new ManagementClient({ token: "<token>", }); await client.connections.clients.update("id", [ { clientId: "client_id", status: true, }, ]); } main();
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The id of the connection to modify
1
The client_id of the client whose status will be changed. Note that the limit per PATCH request is 50 clients.
Whether the connection is enabled or not for this client_id
Success