POST
/
data
/
projects
/
{projectId}
/
cache
/
batch
curl --request POST \
  --url https://partner.peaka.studio/api/v1/data/projects/{projectId}/cache/batch \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "catalogId": "627249916703408649",
    "schemaName": "payment",
    "tableName": "customers"
  },
  {
    "catalogId": "627249916703408649",
    "schemaName": "payment",
    "tableName": "charges",
    "incrementalCacheSchedule": {
      "type": "BASIC",
      "expression": "PT6H"
    }
  },
  {
    "catalogId": "627249916703408649",
    "schemaName": "payment",
    "tableName": "invoices",
    "fullRefreshCacheSchedule": {
      "type": "BASIC",
      "expression": "PT24H"
    },
    "incrementalCacheSchedule": {
      "type": "BASIC",
      "expression": "PT6H"
    }
  }
]'
[
  {
    "success": true,
    "error": "<string>",
    "cache": {
      "id": "<string>",
      "appId": "<string>",
      "catalogId": "<string>",
      "schemaName": "<string>",
      "tableName": "<string>",
      "incrementalCacheSchedule": {
        "expression": "<string>"
      },
      "fullRefreshCacheSchedule": {
        "expression": "<string>"
      }
    }
  }
]

Path Parameters

projectId
string
required

Body

application/json · object[]
Create Cache Request
catalogId
string

The ID of the catalog for the cache request.

schemaName
string

The name of the schema for the cache request.

tableName
string

The name of the table for the cache request.

incrementalCacheSchedule
object

This class represents a schedule for a materialized query.

fullRefreshCacheSchedule
object

This class represents a schedule for a materialized query.

Response

200 - */*
OK
success
boolean
error
string
cache
object