curl --request PUT \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/cache/{cacheId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '"{\n \"fullRefreshCacheSchedule\": {\n \"type\": \"BASIC\",\n \"expression\": \"PT24H\"\n },\n {\n \"incrementalCacheSchedule\": {\n \"type\": \"BASIC\",\n \"expression\": \"PT6H\"\n }\n}"'
{
"id": "<string>",
"catalogId": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"incrementalCacheSchedule": {
"expression": "<string>"
},
"fullRefreshCacheSchedule": {
"expression": "<string>"
},
"projectId": "<string>"
}
curl --request PUT \
--url https://partner.peaka.studio/api/v1/data/projects/{projectId}/cache/{cacheId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '"{\n \"fullRefreshCacheSchedule\": {\n \"type\": \"BASIC\",\n \"expression\": \"PT24H\"\n },\n {\n \"incrementalCacheSchedule\": {\n \"type\": \"BASIC\",\n \"expression\": \"PT6H\"\n }\n}"'
{
"id": "<string>",
"catalogId": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"incrementalCacheSchedule": {
"expression": "<string>"
},
"fullRefreshCacheSchedule": {
"expression": "<string>"
},
"projectId": "<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
Update Cache Settings
This class represents a request to cache data. It contains the catalog ID, schema name, table name, and schedule of the cache request.
OK
The response is of type object
.