Last active
April 16, 2020 16:18
-
-
Save camallen/e5ff7e7bfbf5f78ff8457532b0ad3f92 to your computer and use it in GitHub Desktop.
Unlock and reload a designator workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
creds="$basicUsername:$basicPassword" | |
host="https://designator.zooniverse.org/api/workflows" | |
if [ -n "$1" ]; then | |
curl -v --user $creds -X POST "${host}/${1}/unlock" | |
curl -v --user $creds -X POST "${host}/${1}/reload" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment