Create button column via API

I am successfully creating tables via the API, but I’m encountering an issue with one specific column. The column is intended to contain a button that redirects to a link, but NocoDB reports an ‘invalid field configuration’ error.

Here is the configuration I tried:

{
  "title": "Search Results Button",
  "uidt": "Button",
  "description": "Button to view related search results",
  "colOptions": {
    "type": "url",
    "formula": "CONCAT('https://archive.org')"
  }
}

Has anyone successfully implemented a button column with a working URL? Any insights would be greatly appreciated!

Hi @Masterb12

There seem to be a misalignment with our api docs (will fix), so please use following payload for timebeing:

{
    "title": "ButtonTest",
    "uidt": "Button",
    "theme": "solid",
    "label": "Button",
    "color": "brand",
    "type": "url",
    "formula_raw": "CONCAT('https://archive.org')"
}

Great! This works fine. Thanks alot!

1 Like