I am using the gem 'gitlab' to access my Gitlab.com account via the API

I can create & group via the web browser interface, but not 
programmatically via the API

I wrote the following :

    gitlab = Gitlab.client(endpoint: git_profile[:endpoint], private_token: 
git_profile[:private_token])
    user = gitlab.user # just for debugging - user.can_create_group is true 
    group = gitlab.create_group("grand_frere_sa", "grand_frere_sa")
    
the 'gitlab'  gem method is the following :
    # Creates a new group.
    #
    # @param  [String] name The name of a group.
    # @param  [String] path The path of a group.
    # @return [Gitlab::ObjectifiedHash] Information about created group.
    def create_group(name, path)
      body = {:name => name, :path => path}
      post("/groups", :body => body)
    end
  
  the error message is  :
      Server responded with code 403, message: 403 Forbidden. Request URI: 
https://gitlab.com/api/v3/groups
  
  
where am I wrong ?
  
thanks for help

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/f280d3f8-5b13-4578-a5d1-339719af21ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to