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

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

# Type Alias SdkLegacyActionDefinition

```ts
type SdkLegacyActionDefinition = {
  action: {
    id: SdkActionId;
  };
};
```

How a data app built against an older SDK names an action: the saved action
`action.id` names, by its entity ID or numeric id.

## Deprecated

A data app passes a `defineAction` definition with `entityId`.

## Properties

| Property                         | Type                                               |
| :------------------------------- | :------------------------------------------------- |
| ~~`action`~~ | \{ `id`: [`SdkActionId`](https://www.metabase.com/docs/latest/embedding/sdk/api/SdkActionId.md); \} |
| `action.id`                      | [`SdkActionId`](https://www.metabase.com/docs/latest/embedding/sdk/api/SdkActionId.md)              |
