---
title: "Set Analytics Cache"
method: POST
path: "/api/v1/admin/analytics/cache"
tags: ["Admin"]
---

# Set Analytics Cache

`POST /api/v1/admin/analytics/cache`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v1/admin/analytics/cache`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- AnalyticsCachePayload
  - `cache_key` string, required
  - `payload` object, required
  - `ttl_seconds` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
