# `AshJsonApi.Error.MissingTypeOnCreate`
[🔗](https://github.com/ash-project/ash_json_api/blob/v1.6.5/lib/ash_json_api/error/missing_type_on_create.ex#L5)

Returned when a POST create request has a data object but no type member,
and the domain has require_type_on_create? enabled (JSON:API spec compliance).

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %AshJsonApi.Error.MissingTypeOnCreate{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.AshJsonApi.Error.MissingTypeOnCreate` without raising it.

## Keys

---

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