update_cospend_member
Modify a Cospend member's name, share weight, activity status, color, or linked user. Requires maintainer access and only changes specified fields.
Instructions
Update a Cospend member. Requires MAINTAINER access.
Pass only the fields you want to change.
IMPORTANT: Setting activated=False on a member who has no bills will
permanently delete them, not just disable them. To always keep a
recoverable record, ensure the member has at least one associated bill
first, or use delete_cospend_member which is unambiguous.
Args: project_id: String project id. member_id: Integer member id (from list_cospend_members). name: New display name. weight: New share weight. activated: True = active, False = disabled (or deleted if no bills). color: New hex color (with or without leading "#"). Pass empty string to clear the color (server picks one on next display). user_id: Link/unlink to a Nextcloud user id. Pass empty string to unlink.
Returns: JSON of the updated member, or null if the member was deleted as described above.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"member_id": "<member_id>"
},
"name": "update_cospend_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| color | No | ||
| weight | No | ||
| user_id | No | ||
| activated | No | ||
| member_id | Yes | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |