update_cospend_project
Update Cospend project settings: name, currency, auto-export, sorting, deletion guard, or archive. Pass only fields you want to change; requires admin.
Instructions
Update a Cospend project's settings. Requires ADMIN access.
Pass only the fields you want to change; omit the rest.
Args:
project_id: String project id.
name: New display name.
auto_export: Periodic CSV auto-export frequency. Same code set as
bill repeat: "n"=none (default), "d"=daily, "w"=weekly,
"b"=biweekly, "s"=semi-monthly, "m"=monthly, "y"=yearly.
currency_name: Main currency name (free-form string, e.g. "EUR").
Pass empty string to clear.
deletion_disabled: When set, delete_cospend_bill returns HTTP 403
("project deletion is disabled"). delete_cospend_project is
NOT gated by this flag and still succeeds. Useful as a guard
against accidental bill removal in shared projects.
category_sort: Default category ordering. "a"=alphabetical (default),
"m"=manual (custom order field), "u"=most used,
"r"=recently used.
payment_mode_sort: Same options as category_sort, for payment modes.
archived_ts: Archive control with three special values.
- 0 → archive now (server records the current Unix timestamp).
- -1 → unarchive (clears the field).
- any other int → archive at that exact Unix timestamp.
Note: 0 ARCHIVES the project (it does not unarchive).
Returns: JSON {"project_id": ..., "updated": true} — the OCS endpoint returns no body, so this is a synthetic confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| project_id | Yes | ||
| archived_ts | No | ||
| auto_export | No | ||
| category_sort | No | ||
| currency_name | No | ||
| deletion_disabled | No | ||
| payment_mode_sort | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |