---
title: "Trigger Button Action"
method: POST
path: "/api/v3/data/{baseId}/{tableId}/actions/{columnId}"
tags: ["Table Records"]
---

# Trigger Button Action

`POST /api/v3/data/{baseId}/{tableId}/actions/{columnId}`

## Request

- Base URL: `https://app.nocodb.com`
- URL: `https://app.nocodb.com/api/v3/data/{baseId}/{tableId}/actions/{columnId}`
- Auth: one of:
  - API key in header `xc-token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/nocodb/apis/nocodb-v3/docs/api/v3/data/:baseId/:tableId/actions/:columnId/post.ts> (a function with typed inputs; its response is checked against the schema)

Triggers a button action (such as AI generation) for specified rows. This is useful for bulk processing button actions programmatically. Maximum of 25 rows can be processed at a time.

## Headers

- `xc-token` string, required

## Request body

- object
  - `rowIds` string[], required: Array of record IDs to process
  - `preview` boolean: Preview mode (optional)

## Response `200`

Action triggered successfully

- DataRecordV3[]
  - `id` union, required: Record identifier (primary key value)
    - string
    - number
  - `id_fields` object: Individual primary key field values as object
  - `fields` object: Record fields data, excluding the primary key. Always present; an empty object when the record has no other fields.
  - `field_errors` string[]: Fields whose value could not be computed because the field is broken (e.g. a lookup through a deleted link). Their value in `fields` is null.

## Other responses

- `400`: BadRequest
- `401`: No credential was supplied, it was not valid, or this operation does not accept the kind of credential that was sent.

## Changes

- **2026-10-13** `2ba4267a99d7`: 2 info
  - added the media type `application/json` for the response with the status `401`
  - added the optional property `items/field_errors` to the response with the `200` status

[Operation history](https://skmtc.dev/nocodb/apis/nocodb-v3/changes/api/v3/data/:baseId/:tableId/actions/:columnId/post.md)

---

[API](https://skmtc.dev/nocodb/apis/nocodb-v3.md) - [All operations](https://skmtc.dev/nocodb/apis/nocodb-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/nocodb/apis/nocodb-v3/revisions/62a735aaf849?raw)
