Table of Contents

Class RulesConfigClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll

Contains methods to access the /rules-configs endpoint

public class RulesConfigClient : BaseClient, IRulesConfigClient
Inheritance
RulesConfigClient
Implements
Inherited Members

Constructors

RulesConfigClient(IManagementConnection, Uri, IDictionary<string, string>)

Initializes a new instance of RulesConfigClient.

public RulesConfigClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)

Parameters

connection IManagementConnection

IManagementConnection used to make all API calls.

baseUri Uri

Uri of the endpoint to use in making API calls.

defaultHeaders IDictionary<string, string>

Dictionary containing default headers included with every request this client makes.

Methods

CreateOrUpdateAsync(RulesConfigCreateOrUpdateRequest, CancellationToken)

Creates or updates a rules config variable according to the request.

public Task<RulesConfig> CreateOrUpdateAsync(RulesConfigCreateOrUpdateRequest request, CancellationToken cancellationToken = default)

Parameters

request RulesConfigCreateOrUpdateRequest

The RulesConfigCreateOrUpdateRequest containing the details of the rule to create or update.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<RulesConfig>

The newly created Rule.

DeleteAsync(string, CancellationToken)

Deletes a rules config variable.

public Task DeleteAsync(string key, CancellationToken cancellationToken = default)

Parameters

key string

The key of the rules-config to delete.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.