---
title: "Type Alias SdkActionDefinition"
url: "https://www.metabase.com/docs/latest/embedding/sdk/api/SdkActionDefinition"
version: "65"
---

> For the complete documentation index, see [llms.txt](https://www.metabase.com/docs/llms.txt).

# Type Alias SdkActionDefinition

```ts
type SdkActionDefinition = {
  entityId: SdkEntityId;
  kind: "row/create" | "row/update" | "row/delete";
  table: {
    id: number;
  };
};
```

How a data app names an action: a `defineAction` definition of an implicit
action on a table. The dev preview runs it without saving it, and a
production build runs the action `entityId` names.

## Properties

| Property                         | Type                                               |
| :------------------------------- | :------------------------------------------------- |
| `entityId` | [`SdkEntityId`](https://www.metabase.com/docs/latest/embedding/sdk/api/SdkEntityId.md)              |
| `kind`         | `"row/create"` \| `"row/update"` \| `"row/delete"` |
| `table`       | \{ `id`: `number`; \}                              |
| `table.id`                       | `number`                                           |
