code: func (api OrganizationsAPI) AddOrganizationRegistryEntry(w http.ResponseWriter, r *http.Request) {
  	globalid := mux.Vars(r)["globalid"]
  
  	registryEntry := registry.RegistryEntry{}
  
  	if err := json.NewDecoder(r.Body).Decode(&registryEntry); err != nil {
  		http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
  		return
  	}
  	if err := registryEntry.Validate(); err != nil {
  		log.Debug("Invalid registry entry: ", registryEntry)
  		http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
  		return
  	}
  
  	mgr := registry.NewManager(r)
  	err := mgr.UpsertRegistryEntry("", globalid, registryEntry)
  
  	if err != nil {
  		log.Error(err.Error())
  		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
  		return
  	}
  
  	w.Header().Set("Content-Type", "application/json")
  	w.WriteHeader(http.StatusCreated)
  	json.NewEncoder(w).Encode(registryEntry)
  }
docs: // AddOrganizationRegistryEntry is the handler for POST /organizations/{globalid}/registry
  // Adds a RegistryEntry to the organization's registry, if the key is already used, it is overwritten.