Update Table

Update an existing table's metadata

PATCH/tables/{table_id}
Requires Bearer authentication

Update the metadata of an existing table. This does not modify the table's fields.

Path Parameters

table_idstringrequired

The unique identifier of the table.

Body Parameters

namestring

New display name for the table.

descriptionstring

New description for the table.

iconstring

New icon identifier.

PATCH/tables/{table_id}
curl -X PATCH "https://api.vastal.agency/v1/tables/tbl_abc123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "name": "Customer Contacts",
  "description": "Updated contact database"
}'
200Success
{
"success": true,
"data": {
  "id": "tbl_abc123",
  "name": "Customer Contacts",
  "slug": "customer-contacts",
  "description": "Updated contact database",
  "updated_at": "2024-01-21T09:00:00Z"
}
}