GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdShare

AI-generated

Summary

Add a project share to grant another GitLab user access to the specified project by POSTing to the /api/v4/projects/{id}/share endpoint.

Inputs

  • id (required) — The ID or URL-encoded path of the project to share.
  • postApiV4ProjectsIdShare (required) — The request body defining the share parameters, such as the user to share with and access level.
  • baseUrl — Optional GitLab instance base URL; defaults to https://gitlab.com.
  • skipAuthentication — Optionally skip authentication for the request (default is false).

Output shape

a single record

Returns the details of the newly created project share. Uses the GitLab API response format. Authentication is required unless explicitly skipped.

Links

Discussion