Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

create_lab-organisation.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. . .//setgin.sh
  2. ## create an organisation, with bot
  3. botname="jcolomb"
  4. #Inputs
  5. loginuser="jcolomb"
  6. thisorga="testorga"
  7. createorga(){
  8. organame=$1
  9. data="{\"username\":\"${organame}\",\"Description\":\"deleteme\""
  10. post ${data} ${ginhost}/api/v1/admin/users/${botname}/orgs
  11. }
  12. createorga ${thisorga}
  13. #POST /admin/users/:username/orgs
  14. # username string Required Organization user name
  15. # full_name string Full name of organization
  16. # description string Description to the organization
  17. # website string Official website
  18. # location string Organization location
  19. ## add logged-in user to owner
  20. ##THIS DOES NOT WORK
  21. # PUT /orgs/:orgname/memberships/:username
  22. # role="admin"
  23. addusertoorga(){
  24. organame=$1
  25. user=$2
  26. data="{\"role\":admin}"
  27. put ${data} ${ginhost}/api/v1/orgs/${organame}/memberships/${user}
  28. }
  29. addusertoorga ${thisorga} ${loginuser}
  30. ## create teams: readaccess, writeaccess
  31. # POST /admin/orgs/:orgname/teams
  32. #name string Required Team name
  33. #description string Description to the team
  34. #permission string Team permission, can be read, write or admin, default is read