API Documentation
Organization -- Organizations
Organization -- Workspaces
Organization -- Projects
Projects (Deprecated)
Projects -- Api Key
Connections
Data -- Catalogs
Data -- Internal Tables
Data -- Queries
Data -- Semantic Catalogs
Data -- Cache
Data -- Parametric Tables
Embedded Peaka Api
Supported Drivers
Data -- Metadata
- PUTUpdate Metadata ai usage per catalog level
- PUTUpdate Metadata ai usage per schema level
- PUTUpdate Metadata
- PUTUpdate Relation From Metadata
- DELDelete Relation From Metadata
- PUTGenerate categorical values from the column.
- DELDelete categorical values from the column meta and remove the scheduled job
- POSTGenerate semantics for the table
- POSTAdd Relation To Metadata
- POSTRefresh Project Metadata
- GETList of golden sqls for the project.
- POSTCreate golden sql for the project
- GETGet Project Metadata
- GETGet Project Catalog Metadata Relations
- GETGenerate sample ai questions for the project
- GETSemantic query metadata for the project.
- GETSemantic query golden sqls for the project.
- DELDelete golden sql from the project.
AI -- Agent
AI -- AgentV2
Data -- SQL
Data -- Internal Tables
Add BI Column
POST
/
data
/
projects
/
{projectId}
/
bitable
/
{tableName}
/
columns
Copy
Ask AI
curl --request POST \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/bitable/{tableName}/columns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"dataType": "bigint",
"displayName": "num19",
"defaultValue": null,
"name": "num19"
},
{
"dataType": "bigint",
"displayName": "num18",
"defaultValue": 3,
"isUnique": true,
"name": "num18"
}
]'
Copy
Ask AI
[
{
"name": "num19",
"dataType": "bigint",
"displayName": "num19",
"defaultValue": null,
"isNotNull": false,
"isUnique": false
},
{
"name": "num18",
"dataType": "bigint",
"displayName": "num18",
"defaultValue": "3",
"isNotNull": false,
"isUnique": true
}
]
Authorizations
Use the Authorization header with the value 'Bearer <apiKey>' to authenticate. Partner API Keys have full access; Project API Keys are limited to their project scope. Learn more: https://docs.peaka.com/api-reference/authentication
Body
application/json
Column Request
This class represents a ColumnRequest. It contains the name, data type, display name, default value, not null and unique status of the column request.
Response
200 - */*
Column added successfully
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/bitable/{tableName}/columns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"dataType": "bigint",
"displayName": "num19",
"defaultValue": null,
"name": "num19"
},
{
"dataType": "bigint",
"displayName": "num18",
"defaultValue": 3,
"isUnique": true,
"name": "num18"
}
]'
Copy
Ask AI
[
{
"name": "num19",
"dataType": "bigint",
"displayName": "num19",
"defaultValue": null,
"isNotNull": false,
"isUnique": false
},
{
"name": "num18",
"dataType": "bigint",
"displayName": "num18",
"defaultValue": "3",
"isNotNull": false,
"isUnique": true
}
]
Assistant
Responses are generated using AI and may contain mistakes.