POST
/
data
/
projects
/
{projectId}
/
catalogs
/
{catalogId}
/
parametricTables
Create Parametric Table
curl --request POST \
  --url https://partner.peaka.studio/api/v1/data/projects/{projectId}/catalogs/{catalogId}/parametricTables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fromSchema": "<string>",
  "fromTable": "<string>",
  "toSchema": "<string>",
  "toTable": "<string>",
  "paramValues": [
    {
      "key": "<string>",
      "value": {}
    }
  ]
}'
{
  "fromSchema": "public",
  "fromTable": "products",
  "toSchema": "analytics",
  "toTable": "param_products",
  "paramValues": [
    {
      "key": "country",
      "value": "US"
    },
    {
      "key": "year",
      "value": 2024
    }
  ]
}

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

ID of the project

catalogId
string
required

ID of the catalog

Body

application/json
fromSchema
string

Schema of the base table

fromTable
string

Name of the base table

toSchema
string

Schema of the target table

toTable
string

Name of the target table

paramValues
object[]

List of parametric columns

Response

Parametric table created successfully

fromSchema
string

Schema of the base table

fromTable
string

Name of the base table

toSchema
string

Schema of the target table

toTable
string

Name of the target table

paramValues
object[]

List of parametric columns