bw_set_query_roles
Publish or unpublish a BW query by adding or removing it from a role or folder.
Instructions
Publish or unpublish a BW query in a role or folder. action "add": assigns the query to the given role or folder. action "remove": removes the query from the given role or folder. Use bw_get_roles to discover role/folder names and bw_get_query_roles to see current assignments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_name | Yes | Technical name of the BW query (case-insensitive). | |
| action | Yes | "add" to publish, "remove" to unpublish. | |
| target_name | Yes | For target_type "role": the name attribute of the ROLE node (e.g. from bw_get_roles). For target_type "folder": the txt (display name) of the FOLDER node. | |
| target_type | Yes | "role" to assign at role level, "folder" to assign into a specific subfolder. | |
| parent_role_name | No | Required when target_type is "folder". The name attribute of the parent ROLE node that contains the target folder. |