---
title: "Create or upsert an action button on a named action column (fieldName is the column header; a column can hold multiple buttons — reuse fieldName to add more)"
method: POST
path: "/crm/actions"
tags: ["crm"]
---

# Create or upsert an action button on a named action column (fieldName is the column header; a column can hold multiple buttons — reuse fieldName to add more)

`POST /crm/actions`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/crm/actions`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Create or upsert an action button on a named action column (fieldName is the column header; a column can hold multiple buttons — reuse fieldName to add more).

## Request body

- object
  - `objectName` string, required
  - `fieldName` string, required
  - `actionId` string
  - `label` string
  - `variant` string
  - `icon` string
  - `confirmMessage` string
  - `recipe` unknown[]
    - unknown
  - `script` string
  - `scriptPath` string

## Response `200`

Successful response

- object
  - `fieldId` string, required
  - `actionId` string, required
  - `fieldCreated` boolean, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
