Management API
Go
package example import ( context "context" management "github.com/auth0/go-auth0/management/management" client "github.com/auth0/go-auth0/management/management/client" option "github.com/auth0/go-auth0/management/management/option" ) func do() { client := client.NewClient( option.WithToken( "<token>", ), ) request := &management.SetRulesConfigRequestContent{ Value: "value", } client.RulesConfigs.Set( context.TODO(), "key", request, ) }
{ "key": "MY_RULES_CONFIG_KEY", "value": "MY_RULES_CONFIG_VALUE" }
Sets a rules config variable.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Key of the rules config variable to set (max length: 127 characters).
1 - 127
Value for a rules config variable.
Rules config variable successfully set.
Key for a rules config variable.
^[A-Za-z0-9_\-@*+:]*$
Was this page helpful?