Create or update a role
wflow_upsert_roleCreate or update a role by providing name, description, assigned users, and permission rights. Use to add new roles or modify existing ones with rights like CanApprove, CanExport, etc.
Instructions
Create a role (POST, omit id) or update it (PUT, pass roleId). Body: {name, description?, users?:[userId...], rights?:[Right...]}. Rights are enum names like CanApprove, CanMarkForPayment, CanExport, CanManageSettings.
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": {
"role": "<role>"
},
"name": "wflow_upsert_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | RoleUpdate object {name, description?, users?, rights?}. | |
| roleId | No | Existing role id to update. Omit to create. | |
| organization | No |