code: func (api OrganizationsAPI) AddRequiredScope(w http.ResponseWriter, r *http.Request) {
  	globalID := mux.Vars(r)["globalid"]
  	var requiredScope organization.RequiredScope
  	if err := json.NewDecoder(r.Body).Decode(&requiredScope); err != nil {
  		log.Debug("Error while adding a required scope: ", err.Error())
  		http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
  		return
  	}
  	if !requiredScope.IsValid() {
  		http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
  		return
  	}
  	mgr := organization.NewManager(r)
  	organisation, err := mgr.GetByName(globalID)
  	if err == mgo.ErrNotFound {
  		writeErrorResponse(w, http.StatusNotFound, "organization_not_found")
  		return
  	}
  	for _, scope := range organisation.RequiredScopes {
  		if scope.Scope == requiredScope.Scope {
  			writeErrorResponse(w, http.StatusConflict, "required_scope_already_exists")
  			return
  		}
  	}
  	err = mgr.AddRequiredScope(globalID, requiredScope)
  	if err != nil {
  		handleServerError(w, "adding a required scope", err)
  	} else {
  		w.WriteHeader(http.StatusCreated)
  	}
  }
docs: // AddRequiredScope is the handler for POST /organizations/{globalid}/requiredscope
  // Adds a required scope