GitLab API icon

GitLab API

Gitlab

Actions1062

Groups → postApiV4GroupsIdShare

AI-generated

Summary

Add a new shared group to an existing GitLab group by specifying the target group's ID and sharing details in the request body.

Inputs

  • Id (required) — The ID of the GitLab group to which you want to add a shared group.

Output shape

a single JSON object representing the newly created shared group within the specified GitLab group

The operation performs a POST request to the GitLab API endpoint /api/v4/groups/{id}/share with required authentication unless "Skip Authentication" is enabled. The request body must conform to the 'postApiV4GroupsIdShare' schema specifying the sharing details.

Examples

Example 1: Share a GitLab group with another group

Provide the target group's ID in the 'Id' path parameter and set sharing permissions and other details in the request body according to the GitLab API schema for group sharing.

Links

Discussion