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

Summary

Functions

Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0.

Delete an existing API by ID.

Retrieve API details with the given ID.

Retrieve details of all APIs associated with your tenant.

Change an existing API setting by resource server ID.

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 API associated with your tenant. Note that all new APIs must be registered with Auth0.

see

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

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

Delete an existing API by ID.

see

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

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

Retrieve API details with the given ID.

see

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

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

Retrieve details of all APIs associated with your tenant.

see

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

Link to this function

update(id, params, config)

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

Change an existing API setting by resource server ID.

see

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