---
title: "Set Ttl"
method: POST
path: "/api/admin/cache/ttl"
tags: ["copilot_frontend", "admin", "admin-cache"]
---

# Set Ttl

`POST /api/admin/cache/ttl`

Configura un nuevo TTL para el caché.

**🔒 Endpoint Protegido:** Requiere autenticación JWT y rol 'admin'

## Request body

- TtlConfigRequest
  - `days` integer, required
  - `updated_by` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api.md) · [All operations](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hogarsolar/hogarsolar-backend-api/revisions/d9861e46bef8/schema)
