Skip to main content
PUT
https://{tenantDomain}/api/v2
/
rules-configs
/
{key}
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;

public partial class Examples
{
    public async Task Example() {
        var client = new ManagementClient(
            token: "<token>"
        );

        await client.RulesConfigs.SetAsync(
            key: "key",
            request: new SetRulesConfigRequestContent {
                Value = "value"
            }
        );
    }

}
{
  "key": "MY_RULES_CONFIG_KEY",
  "value": "MY_RULES_CONFIG_VALUE"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

key
string
required

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

Required string length: 1 - 127

Body

value
string
default:MY_RULES_CONFIG_VALUE
required

Value for a rules config variable.

Response

Rules config variable successfully set.

key
string
default:MY_RULES_CONFIG_KEY
required

Key for a rules config variable.

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

Value for a rules config variable.