Passer au contenu principal
PUT
/
rules-configs
/
{key}
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.rulesConfigs.set("key", {
        value: "value",
    });
}
main();
{
  "key": "MY_RULES_CONFIG_KEY",
  "value": "MY_RULES_CONFIG_VALUE"
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

key
string
requis

Key of the rules config variable to set (max length: 127 characters).

Required string length: 1 - 127
Pattern: ^[A-Za-z0-9_\-@*+:]*$

Corps

value
string
défaut:MY_RULES_CONFIG_VALUE
requis

Value for a rules config variable.

Réponse

Rules config variable successfully set.

key
string
défaut:MY_RULES_CONFIG_KEY
requis

Key for a rules config variable.

Required string length: 1 - 127
Pattern: ^[A-Za-z0-9_\-@*+:]*$
value
string
défaut:MY_RULES_CONFIG_VALUE
requis

Value for a rules config variable.