POST
/
data
/
projects
/
{projectId}
/
cache
curl --request POST \
  --url https://partner.peaka.studio/api/v1/data/projects/{projectId}/cache \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "960bd651-7b3c-4511-9a88-18e14ac7742a",
  "catalogId": "627249916703408649",
  "schemaName": "payment",
  "tableName": "customers"
}'
{
  "id": "<string>",
  "appId": "<string>",
  "catalogId": "<string>",
  "schemaName": "<string>",
  "tableName": "<string>",
  "incrementalCacheSchedule": {
    "expression": "<string>"
  },
  "fullRefreshCacheSchedule": {
    "expression": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Project ID

Body

application/json
Create Cache Request

This class represents a request to cache data. It contains the catalog ID, schema name, table name, and schedule of the cache request.

Response

200 - */*
OK

The response is of type object.