---
title: "POST /gateway-update-cache"
method: POST
path: "/gateway-update-cache"
tags: ["v2"]
---

# POST /gateway-update-cache

`POST /gateway-update-cache`

## Request body

- GatewayUpdateCache — gatewayUpdateCache is a command that updates cache settings
  - `backup-interval` string — Secure backup interval in minutes. To ensure service continuity in case of power cycle and network outage secrets will be backed up periodically per backup interval
  - `enable-cache` string — Enable cache [true/false]
  - `enable-proactive` string — Enable proactive caching [true/false]
  - `json` boolean — Set output format to JSON
  - `minimum-fetch-interval` string — When using Cache or/and Proactive Cache, additional secrets will be fetched upon requesting a secret, based on the requestor's access policy. Define minimum fetching interval to avoid over fetching in a given time frame
  - `stale-timeout` string — Stale timeout in minutes, cache entries which are not accessed within timeout will be removed from cache
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `201`

gatewayUpdateCacheResponse wraps response body.

- GatewayUpdateOutput
  - `updated` boolean

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
