GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdShare

AI-generated

Summary

Share a GitLab project with another group by sending a POST request to the /api/v4/projects/{id}/share endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to share.
  • postApiV4ProjectsIdShare (required) — The request body containing details about the group with which the project will be shared, matching the 'postApiV4ProjectsIdShare' schema.

Output shape

a JSON object representing the response from GitLab after sharing the project, typically including sharing details or status.

The output corresponds directly to the GitLab API response for sharing a project with a group; the HTTP method used is POST. Authentication is required unless 'Skip Authentication' is enabled.

Links

Discussion