---
title: "Custom action Example"
description: "Extracted example from ctx.resource"
---

# ctx.resource

## Custom action

```js
await ctx.resource.runAction('create', { data: { name: 'John' } });
```
