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.
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 |