---
title: "POST /mr-api/dacha1/cache"
method: POST
path: "/mr-api/dacha1/cache"
tags: ["CacheService"]
---

# POST /mr-api/dacha1/cache

`POST /mr-api/dacha1/cache`

Allows superusers to refresh the global Dacha1 cache (if it exists).

## Request body

- CacheRefreshRequest
  - `allTheThings` boolean — refresh the whole cache
  - `applicationId` string[] — if provided these applications will be refreshed
  - `portfolioId` string[]

## Response `200`

Success

- CacheRefreshResponse
  - `applicationsRefreshed` integer
  - `portfoliosRefreshed` integer
  - `environmentsRefreshed` integer
  - `serviceAccountsRefreshed` integer

## Other responses

- `400` — Bad Request
- `401` — no permission
- `403` — forbidden
- `404` — Dacha1 is not being used and API does not exist

## Changes

> 2 revisions in range; 1 could not be searched.

- **2023-09-24** `b06e5f293bda` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/featurehub-io/apis/managementresourceapi/changes/mr-api/dacha1/cache/post.md)

---

[API](https://skmtc.dev/featurehub-io/apis/managementresourceapi.md) · [All operations](https://skmtc.dev/featurehub-io/apis/managementresourceapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/featurehub-io/managementresourceapi/revisions/faed5fd616c3/schema)
