# `DripDrop.HttpHooks`
[🔗](https://github.com/agoodway/dripdrop/blob/v0.1.0/lib/dripdrop/http_hooks.ex#L1)

Context for HTTP hooks.

# `create_http_hook`

```elixir
@spec create_http_hook(Ecto.UUID.t(), map()) ::
  {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
```

Creates an HTTP hook for a sequence.

# `list_http_hooks`

```elixir
@spec list_http_hooks(Ecto.UUID.t()) :: no_return()
```

Deprecated unscoped listing. Use `list_http_hooks/2` with an explicit tenant key.

# `list_http_hooks`

```elixir
@spec list_http_hooks(Ecto.UUID.t(), binary() | nil) :: [Ecto.Schema.t()]
```

Lists HTTP hooks for a sequence and explicit tenant scope, ordered by key.

# `test_http_hook`

```elixir
@spec test_http_hook(Ecto.UUID.t(), map()) :: {:ok, term()} | {:error, term()}
```

Executes a hook with test data and stores the redacted test result.

# `update_http_hook`

```elixir
@spec update_http_hook(Ecto.Schema.t(), map()) ::
  {:ok, Ecto.Schema.t()} | {:error, Ecto.Changeset.t()}
```

Updates an HTTP hook.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
