POST
/
data
/
projects
/
{projectId}
/
cache
/
batch
curl --request POST \
  --url https://partner.peaka.studio/api/v1/data/projects/{projectId}/cache/batch \
  --header 'Authorization: Bearer <token>' \
  --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>"
      }
    }
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

projectId
string
required

Body

application/json · object[]
Create Cache Request

The body is of type object[].

Response

200 - */*
OK

The response is of type object[].