Skip to main content
PATCH
https://api.crewship.dev
/
v1
/
tables
/
{id}
curl -X PATCH https://api.crewship.dev/v1/tables/tbl_abc123xyz789 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "qualified_leads",
    "description": "Only qualified prospects"
  }'
{
  "id": "tbl_abc123xyz789",
  "name": "qualified_leads",
  "description": "Only qualified prospects",
  "columns": [
    { "name": "company", "type": "text", "required": true },
    { "name": "score", "type": "number", "required": false }
  ],
  "row_count": 42,
  "created_at": "2024-01-15T10:35:00Z",
  "updated_at": "2024-01-20T08:12:00Z"
}

Path Parameters

id
string
required
Table ID

Request

name
string
New table name
description
string
New description (null clears the description)
columns
array
Full replacement of column definitions

Response

id
string
Table ID
name
string
Updated table name
description
string
Updated description
columns
array
Updated column definitions
row_count
number
Current row count
created_at
string
ISO 8601 timestamp
updated_at
string
ISO 8601 timestamp
curl -X PATCH https://api.crewship.dev/v1/tables/tbl_abc123xyz789 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "qualified_leads",
    "description": "Only qualified prospects"
  }'
{
  "id": "tbl_abc123xyz789",
  "name": "qualified_leads",
  "description": "Only qualified prospects",
  "columns": [
    { "name": "company", "type": "text", "required": true },
    { "name": "score", "type": "number", "required": false }
  ],
  "row_count": 42,
  "created_at": "2024-01-15T10:35:00Z",
  "updated_at": "2024-01-20T08:12:00Z"
}