Change the type of resource from 'Private' to 'Public'

This feature of the app helps changing the type of a resource that is present on the HydroShare database. The option to change it from private to public works very smoothly and it is required because the resources that are private are not very accessible to the general user at HydroShare.

Step 1: Enter in your username and password

In the boxes below you enter your HydroShare username and its password. If you have to make an HydroShare account, click here.

Step 2: Enter in the Resource ID and choose the file you wish to upload

The resource Id is a unique identifier for every resource on Hydroshare. You can findit by browsing to your HydroShare resource copying the ID from the URL. Like for example, this is an example hyperlink https://www.hydroshare.org/resource/08c6e88adaa647cd9bb28e5d619178e0/ from which the 32 letter combination at the end is called the resource id. And so the resource id from the example hyperlink is 08c6e88adaa647cd9bb28e5d619178e0

Resource ID

To try this on your own, you can use the code snippet below, or download the full javascript file that is used in this demonstration.

    
            auth = HydroShareAuthBasic(username= username, password= password)
            hs = HydroShare(auth=auth)
            hs.setAccessRules(title, public=True)
            messages.error(request, "Resource is now public")