gitlabgitlab-api

How to add a group to a project in gitlab by API curl?


I have many project in my Gitlab and I want to add a group to all of my project.

I'm looking for a curl command to invite a group to my Gitlab project.

for example maintainer privileges


Solution

  • curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.com/api/v4/groups/:id/projects/:project_id"
    

    Please refer Gitlab docs for more details

    https://docs.gitlab.com/ee/api/groups.html