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

# POST /gateway-update-cache

`POST /gateway-update-cache`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/gateway-update-cache`
- Auth: none declared

## 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.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
