curl --request POST \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"displayName": "sampleQuery",
"inputQuery": "SELECT * from \"mycatalog\".payment.customers"
}'
{
"id": "<string>",
"displayName": "<string>",
"name": "<string>",
"inputQuery": "<string>",
"inputQueryRefId": "<string>",
"queryType": "<string>",
"schedule": {
"expression": "<string>"
}
}
curl --request POST \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"displayName": "sampleQuery",
"inputQuery": "SELECT * from \"mycatalog\".payment.customers"
}'
{
"id": "<string>",
"displayName": "<string>",
"name": "<string>",
"inputQuery": "<string>",
"inputQueryRefId": "<string>",
"queryType": "<string>",
"schedule": {
"expression": "<string>"
}
}
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
Query Request
The body is of type object
.
Query created
The response is of type object
.