Skip to main content
PATCH
Update recurring rule

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json
is_active
boolean

Whether the rule is active

supplier_id
string

Supplier ID (optional)

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

category_id
string

Category ID (optional for income rules)

Example:

"b2c3d4e5-f678-90ab-cdef-123456789012"

client_id
string

Client ID (optional, mainly used by manual income rules)

Example:

"b2c3d4e5-f678-90ab-cdef-123456789012"

description
string

Rule description

Maximum string length: 255
Example:

"Monthly rent"

type
enum<string>

Rule type

Available options:
expense,
income
Example:

"expense"

source
string

Rule source metadata

Example:

"manual_user"

projection_group
string

Optional grouping hint for projections

Example:

"rrhh"

expected_amount
number

Expected amount (legacy format, optional when projection_months is sent)

Required range: x >= 0
Example:

500000

expected_day
number

Expected day of the month

Required range: 1 <= x <= 31
Example:

5

end_date
string<date-time>

End date for the recurring rule (optional)

Example:

"2026-12-31T00:00:00.000Z"

amount_schedule
object[]

Optional scheduled amount changes by month

projection_months
object[]

Dense projection matrix used by the UI to edit projected month amounts directly

Response

Rule updated successfully

rule_id
string
required
supplier_id
object
required
description
string
required
type
enum<string>
required
Available options:
expense,
income
expected_amount
number
required
expected_day
number
required
end_date
object
required
is_active
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
category_id
object
client_id
object
source
object
projection_group
object
amount_schedule
object[]
projection_months
object[]