---
title: "Update a CashflowSource"
method: POST
path: "/apps/{appId}/cashflowsources/{id}"
tags: ["Sources"]
---

# Update a CashflowSource

`POST /apps/{appId}/cashflowsources/{id}`

## Path parameters

- `appId` integer, required
- `id` integer, required

## Query parameters

- `name` string
- `identifiant` string
- `type` 'bank' | 'cashdesk' | 'waiting'
- `balance_amount` integer
- `account_type` 'checking' | 'card' | 'savings' | 'special' | 'securities' | 'loan' | 'life_insurance' | 'unknown' | 'pending' | 'share_savings_plan'
- `parent_cashflow_source_id` integer, nullable
- `disabled` boolean

## Response `200`

Success

- CashflowSource
  - `id` integer
  - `parent_cashflow_source` CashflowSource — recursive
  - `name` string
  - `identifiant` string
  - `account_type` string
  - `disabled` boolean
  - `balance_amount` integer
  - `type` string
  - `status` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Bad request
- `404` — Not found

---

[API](https://skmtc.net/sinao/apis/sinao-api.md) · [All operations](https://skmtc.net/sinao/apis/sinao-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinao/sinao-api/revisions/436b47b78bf4/schema)
