Passer au contenu principal
PATCH
/
connections
/
{id}
/
clients
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();

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

The id of the connection to modify

Corps

Minimum array length: 1
client_id
string<client-id>
requis

The client_id of the client whose status will be changed. Note that the limit per PATCH request is 50 clients.

status
boolean
requis

Whether the connection is enabled or not for this client_id

Réponse

Success