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
| Status | Meaning |
|---|---|
202 Accepted | Yuki started re-reading the account's warehouses. A call made while a refresh is already running joins that refresh. |
401 Unauthorized | The Yuki API key is missing or wrong. See Authentication. |
503 Service Unavailable | Yuki couldn't start the refresh. Try again. |
The refresh runs in the background, so 202 means it has started, not that it has finished.