> ## Documentation Index
> Fetch the complete documentation index at: https://gadget.aurelienbbn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# model-action-invalid-action-type

> Disallow invalid actionType values in model action options.

| Recommended                                  | Strict                                     | Auto-fixable                                | Scope              |
| -------------------------------------------- | ------------------------------------------ | ------------------------------------------- | ------------------ |
| <Badge color="orange" size="sm">warn</Badge> | <Badge color="red" size="sm">error</Badge> | <Badge color="gray" size="sm">false</Badge> | Model action files |

<Tip>Related Gadget documentation: [Gadget docs](https://docs.gadget.dev/guides/actions/code#actiontype)</Tip>

**What the linter reports:**

> actionType "`value`" must be create, update, delete, or custom.

## Examples

<Tabs>
  <Tab title="Incorrect">
    ```ts title="api/models/widget/actions/create.ts" theme={null}
    export const options: ActionOptions = {
      // "scheduler" is not valid - must be create, update, delete, or custom
      actionType: "scheduler",
    };
    ```
  </Tab>

  <Tab title="Correct">
    ```ts title="api/models/widget/actions/create.ts" theme={null}
    export const options: ActionOptions = {
      // valid actionType values: create, update, delete, custom
      actionType: "custom",
    };
    ```
  </Tab>
</Tabs>
