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 '
{
"fullRefreshCacheSchedule": {
"type": "BASIC",
"expression": "PT24H"
},
"incrementalCacheSchedule": {
"type": "BASIC",
"expression": "PT6H"
}
}
'{
"id": "<string>",
"catalogId": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"incrementalCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"fullRefreshCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"projectId": "<string>"
}{
"id": "<string>",
"catalogId": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"incrementalCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"fullRefreshCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"projectId": "<string>"
}{
"id": "<string>",
"catalogId": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"incrementalCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"fullRefreshCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"projectId": "<string>"
}Update Cache Settings
Updates the sync schedules of an existing cache. Use this to change how frequently the cache is refreshed.
Only schedule fields are updated; the target table, catalog, and schema cannot be changed after creation. When a schedule is changed, any previously running scheduled workflow for that mode is replaced with the new schedule. Set a schedule’s type to NONE to disable that particular sync mode.
The schedule expression uses ISO-8601 duration format (e.g. PT6H = every 6 hours, PT15M = every 15 minutes, P1D = every day).
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 '
{
"fullRefreshCacheSchedule": {
"type": "BASIC",
"expression": "PT24H"
},
"incrementalCacheSchedule": {
"type": "BASIC",
"expression": "PT6H"
}
}
'{
"id": "<string>",
"catalogId": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"incrementalCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"fullRefreshCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"projectId": "<string>"
}{
"id": "<string>",
"catalogId": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"incrementalCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"fullRefreshCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"projectId": "<string>"
}{
"id": "<string>",
"catalogId": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"incrementalCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"fullRefreshCacheSchedule": {
"type": "<string>",
"expression": "<string>"
},
"projectId": "<string>"
}

Authorizations
Use the Authorization header with the value 'Bearer ' 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
Path Parameters
Body
Updated schedule configuration. Only the provided schedule fields are updated.
This class represents a request to cache data. It contains the catalog ID, schema name, table name, and schedule of the cache request.
Response
Cache settings updated successfully. Returns the updated cache configuration.