---
title: "Suggest Weekly Periods"
method: GET
path: "/api/admin/comerciales/horarios-calendario/suggest-weeks"
tags: ["copilot_frontend", "admin", "admin-comerciales", "comerciales"]
---

# Suggest Weekly Periods

`GET /api/admin/comerciales/horarios-calendario/suggest-weeks`

## Request

- Base URL: `https://api.hogarsolar.es` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hogarsolar.es/api/admin/comerciales/horarios-calendario/suggest-weeks`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/docs/api/admin/comerciales/horarios-calendario/suggest-weeks/get.ts> (a function with typed inputs; its response is checked against the schema)

Sugiere periodos semanales para facilitar la creación de horarios.

Args:
    start_date: Fecha de inicio (opcional, por defecto próximo lunes)
    num_weeks: Número de semanas a sugerir (1-10)
    db: Sesión de base de datos

Returns:
    Lista de periodos semanales sugeridos

## Query parameters

- `start_date` string, date: Fecha de inicio (por defecto: próximo lunes)
- `num_weeks` integer: Número de semanas a sugerir (1-10)

## Response `200`

Successful Response

- SuggestedWeeklyPeriod[]
  - `fecha_inicio` string, date, required
  - `fecha_fin` string, date, required
  - `descripcion` string, required

## 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.dev/hogarsolar/apis/hogarsolar-backend-api/revisions/b4cc3cebfaaa?raw)
