Skip to main content
PATCH
Upsert a dashboard subscription goal slot (admin only)

Authorizations

Authorization
string
header
required

Token de sesión Better Auth para rutas de backoffice; las rutas de portal usan su token propio.

Headers

Idempotency-Key
string<uuid>

UUID v4 estable por intento lógico. Durante el rollout compatible el header es opcional.

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$

Body

application/json
year
number
required

Año del slot

Example:

2026

periodType
enum<string>
required

Tipo de período

Available options:
month,
quarter,
year
periodIndex
number
required

Índice de período (1..12 month, 1..4 quarter, 1 year)

Example:

3

netSubsGoal
number | null

Objetivo neto de suscripciones (entero 0..2_147_483_647). null = limpiar, omitido = no toca.

mrrGoal
number | null

Objetivo de MRR (Decimal(18,2) — 0 ≤ value ≤ 90_071_992_547_409.91, ≤ 2 decimales). admin only. null = limpiar, omitido = no toca.

Response

year
number
required
periodType
enum<string>
required
Available options:
month,
quarter,
year
periodIndex
number
required

1..12 month, 1..4 quarter, 1 year

netSubsGoal
number | null
required
mrrGoal
number | null

Sólo presente en respuestas para admin. OMITIDO para no-admin.