---
url: "https://vueda.dev/v3/reference/api/js/utils/actionMap/functions/getActionName.md"
title: "getActionName"
---

# getActionName

## Overview

Maps a view name to its corresponding DRF action name, defaulting to the view name itself.

## Signature

`getActionName(action)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-action">action</span> | `string` | yes | The view name (e.g. "read", "list", "create"). |

### Returns

`string`

The corresponding DRF action name.

## Source

`client/lib/utils/actionMap.js:16`
