update_cost_line
Change a cost line: its label, amount (in the project currency), status (EXPECTED, COMMITTED, SPENT, in any direction, e.g. back to EXPECTED when an order is cancelled), category, date, task or note. Pass only the fields to change; null clears category, date, taskId or note. Every change is kept in the line's history (get_cost_line_history). Access: the project budget's write rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The day, YYYY-MM-DD; null clears it. A SPENT line counts in earned value actual cost from this day (from the day it was entered when there is none). | |
| note | No | Free text, at most 2000 characters; null clears it. | |
| label | No | What the money is for, e.g. "Electrical works". 1 to 200 characters. | |
| amount | No | The amount in the PROJECT currency, at most 2 decimal places, 0 or more. | |
| status | No | EXPECTED (planned, nothing ordered), COMMITTED (ordered, a purchase order), SPENT (paid or invoiced). Defaults to EXPECTED on create. | |
| taskId | No | A task in the same project this cost belongs to; null clears it. | |
| category | No | The project's own grouping word, e.g. "Works". At most 80 characters; null clears it. | |
| costLineId | Yes |