Financeiro (Protected)

Atualizar divisão por centro de custo

Update cost center split values. Only origin PV user can do this.

Plain def (not async): everything below is synchronous pyodbc — now a multi-statement transaction that takes the group's parent-row lock — and an async handler would block the shared event loop for every concurrent request. Same reason as the sibling GET above.

put/api/financeiro/movements/{movement_id}/cost-center-splits

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/financeiro/movements/{movement_id}/cost-center-splits
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

movement_idinteger required

Headers

x-api-tokenstring nullable

Request body

new_totalnumber nullable

New parent movement total, sent as a positive magnitude. The backend re-applies the group's stored direction — the parent's side (receita/despesa) can never change here.

include_own_splitboolean

Keep/create the origin PV's own share child movement.

Response

Successful Response

idinteger required
pv_idinteger required
pv_namestring nullable
valuenumber required
child_movimento_idinteger nullable
pagoboolean
restitution_movimento_idinteger nullable
restitution_datestring date-time nullable
is_own_shareboolean
directioninteger

Changes

No recorded changes to this operation across all 21 revisions of this API.