GitLab API icon

GitLab API

Gitlab

Actions1062

Invitations → postApiV4GroupsIdInvitations

AI-generated

Summary

Send an invitation to a user to join a specific GitLab group by specifying the group's ID and invitation details.

Inputs

  • id (required) — The ID of the GitLab group to which the user is being invited.
  • postApiV4GroupsIdInvitations (required) — The request body containing invitation details following the 'postApiV4GroupsIdInvitations' schema.
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.

Output shape

a JSON object representing the newly created invitation as returned by the GitLab API

The operation returns the API response for the invitation creation; no pagination applies for this single create action. Requires authentication unless 'Skip Authentication' is set to true.

Examples

Example 1: Invite a user to a GitLab group

Provide the GitLab group ID and the invitation parameters such as the user's email and access level in the request body to create the invitation.

Links

Discussion