Skip to content

Instantly share code, notes, and snippets.

@camallen
Last active April 16, 2020 16:18
Show Gist options
  • Save camallen/e5ff7e7bfbf5f78ff8457532b0ad3f92 to your computer and use it in GitHub Desktop.
Save camallen/e5ff7e7bfbf5f78ff8457532b0ad3f92 to your computer and use it in GitHub Desktop.
Unlock and reload a designator workflow
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