Auth0.Management.Hooks (Auth0Api v1.4.0) View Source

Documentation for Auth0 Management API of Hooks.

endpoint

  • /api/v2/hooks
  • /api/v2/hooks/{id}
  • /api/v2/hooks/{id}/secrets

Link to this section Summary

Link to this section Types

Specs

config() :: Auth0.Config.t()

Specs

error() :: {:error, integer(), term()} | {:error, term()}

Specs

id() :: String.t()

Specs

response_body() :: String.t()

Link to this section Functions

Link to this function

add_secrets(id, params, config)

View Source

Specs

add_secrets(
  id(),
  Auth0.Management.Hooks.Secrets.Add.Params.t() | map(),
  config()
) ::
  {:ok, map(), response_body()} | error()

Add hook secrets.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/post_secrets

Specs

Create a hook.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/post_hooks

Specs

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

Delete a hook.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/delete_hooks_by_id

Link to this function

delete_secrets(id, params, config)

View Source

Specs

delete_secrets(
  id(),
  Auth0.Management.Hooks.Secrets.Delete.Params.t() | map(),
  config()
) ::
  {:ok, String.t(), response_body()} | error()

Delete hook secrets.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/delete_secrets

Specs

Get a hook.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/get_hooks_by_id

Specs

get_secrets(id(), config()) ::
  {:ok, Auth0.Entity.HookSecret.t(), response_body()} | error()

Get hook secrets.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/get_secrets

Specs

Get hooks.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/get_hooks

Link to this function

update(id, params, config)

View Source

Specs

Update a hook.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/patch_hooks_by_id

Link to this function

update_secrets(id, params, config)

View Source

Specs

update_secrets(
  id(),
  Auth0.Management.Hooks.Secrets.Patch.Params.t() | map(),
  config()
) ::
  {:ok, map(), response_body()} | error()

Update hook secrets.

see

https://auth0.com/docs/api/management/v2/#!/Hooks/patch_hooks_by_id