POST
/
data
/
projects
/
{projectId}
/
semantic-catalogs
/
{catalogId}
Create a semantic table
curl --request POST \
  --url https://partner.peaka.studio/api/v1/data/projects/{projectId}/semantic-catalogs/{catalogId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "schemaName": "mySchema",
  "tableName": "myTableName",
  "queryId": "788890918747898752"
}'
{
  "tableId": "688890918747898103",
  "catalogName": "myCatalog",
  "schemaName": "mySchema",
  "tableName": "myTableName"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

projectId
string
required
catalogId
string
required

Body

application/json

Semantic Table Request

schemaName
string

The name of the schema.

tableName
string

The name of the table.

queryId
string

The ID of the query which is used to populate the semantic table.

Response

200 - application/json

Table created

Represents a table in a schema.

catalogId
string

The ID of the catalog that the table belongs to.

catalogName
string

The name of the catalog that the table belongs to.

schemaName
string

The name of the schema that the table belongs to.

tableName
string

The name of the table.

tableId
string

The ID of the semantic table.