You can edit a watchfolder by either clicking the edit icon in the folder listing (only visible on hover) or by going to the desired folder and click the "Edit" button.
Note
Shared watchfolders can only be edited by admins. Users can see the search query by clicking "Show query" inside the watchfolder.