code: func (api OrganizationsAPI) RejectOrganizationInvite(w http.ResponseWriter, r *http.Request) {
  	invitedorgname := mux.Vars(r)["globalid"]
  	role := mux.Vars(r)["role"]
  	invitingorgname := mux.Vars(r)["invitingorg"]
  
  	orgReqMgr := invitations.NewInvitationManager(r)
  
  	orgRequest, err := orgReqMgr.Get(invitedorgname, invitingorgname, role, invitations.RequestPending)
  	if err != nil {
  		log.Error("error while trying to load the invite")
  		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
  		return
  	}
  
  	if orgRequest == nil {
  		http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
  		return
  	}
  
  	orgRequest.Status = invitations.RequestRejected
  
  	if err := orgReqMgr.Save(orgRequest); err != nil {
  		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
  		return
  	}
  
  	w.WriteHeader(http.StatusNoContent)
  }
docs: // RejectOrganizationInvite is the handler for DELETE /organizations/{globalid}/organizations/{invitingorg}/role/{role}
  // Reject the organization invite for one of your organizations