/api/cache

POST /api/cache/invalidate

Changed on

Invalidate cache entries.

Use it like /api/cache/invalidate?database=1&dashboard=15 (any number of database/dashboard/question can be supplied).

&include=overrides controls whenever you want to invalidate cache for a specific cache configuration without touching all nested configurations, or you want your invalidation to trickle down to every card.

post/api/cache/invalidate

Request

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Query parameters

include'overrides' nullable

All cache configuration overrides should invalidate cache too

databaseinteger[] nullable

A list of database ids

dashboardinteger[] nullable

A list of dashboard ids

questioninteger[] nullable

A list of question ids

Response

Successful response

statusunknown required

Changes

    • breaking

      the response's property type changed from integer to no type for status

    • info

      the response property const value 200 was added for the status

    • info

      removed the 200.00 enum value from the response property for the response status

    • info

      removed the 404.00 enum value from the response property for the response status

    • info

      added the media type application/json for the response with the status