View Source Auth0.Management.Rules (Auth0Api v2.2.0)

Summary

Functions

Create a new rule.

Delete a rule.

Retrieve rule details. Accepts a list of fields to include or exclude in the result.

Retrieve a filtered list of rules. Accepts a list of fields to include or exclude.

Update an existing rule.

Types

@type config() :: Auth0.Config.t()
@type error() :: {:error, integer(), term()} | {:error, term()}
@type id() :: String.t()

Functions

@spec create(map(), config()) :: {:ok, map()} | error()

Create a new rule.

see

https://auth0.com/docs/api/management/v2/rules/post-rules

@spec delete(id(), config()) :: {:ok, String.t()} | error()

Delete a rule.

see

https://auth0.com/docs/api/management/v2/rules/delete-rules-by-id

@spec get(id(), map(), config()) :: {:ok, map()} | error()

Retrieve rule details. Accepts a list of fields to include or exclude in the result.

see

https://auth0.com/docs/api/management/v2/rules/get-rules-by-id

@spec list(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve a filtered list of rules. Accepts a list of fields to include or exclude.

see

https://auth0.com/docs/api/management/v2/rules/get-rules

Link to this function

update(id, params, config)

View Source
@spec update(id(), map(), config()) :: {:ok, map()} | error()

Update an existing rule.

see

https://auth0.com/docs/api/management/v2/rules/patch-rules-by-id