Passer au contenu principal
POST
/
organizations
/
{id}
/
members
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.organizations.members.create("id", {
        members: [
            "members",
        ],
    });
}
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

Organization identifier.

Maximum string length: 50

Corps

members
string<user-id-with-max-length>[]
requis

List of user IDs to add to the organization as members.

Minimum array length: 1

Réponse

Members successfully added to organization.