Skip to main content

Refresh Warehouses

Yuki re-reads your Snowflake warehouses every hour. If you create or resize a warehouse outside Yuki, for example from a Snowflake alert or task, call this endpoint so Yuki picks up the change right away.

POST /v1/warehouses/refresh

The request has no body.

Example​

curl -X POST https://prod.yukicomputing.com/v1/warehouses/refresh \
-H "Authorization: Bearer $YUKI_API_KEY"

Response​

StatusMeaning
202 AcceptedYuki started re-reading the account's warehouses. A call made while a refresh is already running joins that refresh.
401 UnauthorizedThe Yuki API key is missing or wrong. See Authentication.
503 Service UnavailableYuki couldn't start the refresh. Try again.

The refresh runs in the background, so 202 means it has started, not that it has finished.