create table
POST
https://api.wexa.ai/create/table
Last modified:2025-04-25 11:50:41
Create a New Table
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.wexa.ai/create/table?projectID=67fdea40aac77be632954f13' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"projectID": "67fdea40aac77be632954f13",
"table_name": "Example table"
}'
Response Response Example
{
"_id": "68071c551a9ea363140a26cd",
"projectID": "67fdea40aac77be632954f13",
"table_name": "Example table",
"columns": [
{
"column_name": "_id",
"column_type": "string",
"column_id": "_id",
"array_type": null,
"default_value": "",
"object_fields": null,
"triggers": null,
"enum_options": null
},
{
"column_name": "Row ID",
"column_type": "number",
"column_id": "row_id",
"array_type": null,
"default_value": 1,
"object_fields": null,
"triggers": null,
"enum_options": null
},
{
"column_name": "User ID",
"column_type": "string",
"column_id": "coworker_user_id",
"array_type": null,
"default_value": "",
"object_fields": null,
"triggers": null,
"enum_options": null
}
],
"connector_id": "68071c561a9ea363140a26ce",
"triggers": null,
"last_row_id": 0
}
Request
Query Params
projectID
string
required
Example:
67fdea40aac77be632954f13
Header Params
x-api-key
string
required
Example:
{{x-api-key}}
Body Params application/json
Responses
Modified at 2025-04-25 11:50:41