Update Table
Update an existing table's metadata
PATCH
/tables/{table_id}Requires
Bearer authenticationUpdate the metadata of an existing table. This does not modify the table's fields.
Path Parameters
table_idstringrequiredThe unique identifier of the table.
Body Parameters
namestringNew display name for the table.
descriptionstringNew description for the table.
iconstringNew 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" }'
const response = await fetch( 'https://api.vastal.agency/v1/tables/tbl_abc123', { method: 'PATCH', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ 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" } }