Skip to main content
PATCH
/
api
/
v2
/
public
/
tables
/
:table_id
/
columns
/
rename
curl -X PATCH "https://app.refold.ai/api/v2/public/tables/{table_id}/columns/rename" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -d '{ "renames": [ { "old_name": "score", "new_name": "lead_score" } ] }'
{
  "columns": ["email", "stage", "lead_score"]
}
Rename one or more columns in a persistent table. Provide old_name/new_name pairs. Returns the table’s columns after renaming.

Authentication

x-api-key
string
required
Your Refold API key.
linked_account_id
string
required
The linked account that owns the table.

Path Parameters

table_id
string
required
The table ID.

Body Parameters

renames
array
required
Rename operations, each { "old_name": "...", "new_name": "..." }.

Response

columns
array
The table’s columns after renaming.
{
  "columns": ["email", "stage", "lead_score"]
}
curl -X PATCH "https://app.refold.ai/api/v2/public/tables/{table_id}/columns/rename" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -d '{ "renames": [ { "old_name": "score", "new_name": "lead_score" } ] }'