update_membership
Change a project member's assigned roles by replacing current roles with specified IDs or names; preview validation first, then confirm to apply.
Instructions
Update a project membership's roles.
The preview is validated by OpenProject; problems come back in validation_errors.
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": {
"membership_id": "<membership_id>",
"roles": "<roles>"
},
"name": "update_membership"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | Yes | Replaces all current roles; role ids or exact role names (case-insensitive), from list_roles. | |
| confirm | No | false: preview only, nothing changes. true: applies it; get the user's approval of the preview first. | |
| membership_id | Yes | Membership id, from list_project_memberships. | |
| notification_message | No | Markdown text for OpenProject's membership notification. |