Skip to content

Instantly share code, notes, and snippets.

@blairmacintyre
Last active February 20, 2020 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blairmacintyre/377954a3d5864dcc21d10688672077e3 to your computer and use it in GitHub Desktop.
Save blairmacintyre/377954a3d5864dcc21d10688672077e3 to your computer and use it in GitHub Desktop.
Take an appropriate json file and upload it to the hubs-cloud account
#!/bin/sh
# the HUBS_ADMIN_ACCOUNT_TOKEN can be found by logging into the admin account in your hubs-cloud instance,
# and then looking in your browser console, executing this:
# JSON.parse(localStorage.___hubs_store).credentials.token
# YOUR_HUBS_SERVER is the public domain of your hubs instance. e.g., for the one I created for IEEE VR it is hubs.ieeevr.online
#
(curl -XPOST -H "Content-Type: application/json" -H "Authorization: bearer HUBS_ADMIN_ACCOUNT_TOKEN" -d @file.json https://YOUR_HUBS_SERVER/api/v1/accounts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment