PATCH
Atualizar regra

Authorizations

Authorization
string
header
required

HTTP Basic com o token como usuário e o secret como senha: curl -u dpz_tk_…:dpz_sk_…. Crie a chave em https://despezzas.com/settings/api-keys.

Path Parameters

id
string
required

Identificador do recurso.

Example:

"8f1c2a34-5b6d-4e7f-8a9b-0c1d2e3f4a5b"

Body

application/json

Todos opcionais; subcategory_id: null limpa a subcategoria.

apply_to_existing
boolean

Recategoriza o histórico com a regra atualizada.

Example:

false

category_id
string

Nova categoria.

Example:

"b1a2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"

enabled
boolean

Ativar/desativar.

Example:

true

match_fields
string[]

Novos campos a comparar.

Example:
subcategory_id
string | null

Nova subcategoria (null limpa).

Example:

null

Response

Sucesso.

rule
object
required
source_transaction_updated
boolean
required

Se o lançamento de origem foi recategorizado.

Example:

true

updated_existing_count
integer
required

Quantos lançamentos existentes foram recategorizados.

Example:

14