invitations

Add a member to a group

Adds a member to a group. You can specify a user ID or invite a user by email.

post/api/v4/groups/{id}/invitations

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The group ID

Request body

access_level10 | 15 | 20 | 25 | 30 | 40 | 50 | 5 required

A valid access level (defaults: 30, developer access level)

emailstring[]

The email address to invite, or multiple emails separated by comma

user_idstring[]

The user ID of the new member or multiple IDs separated by commas.

expires_atstring date-time

Date string in the format YEAR-MONTH-DAY

invite_sourcestring

Source that triggered the member creation process

member_role_idinteger

The ID of a member role for the invited user

Response

Add a member to a group

access_levelstring required
created_atstring required
expires_atstring required
invite_emailstring required
invite_tokenstring required
user_namestring
created_by_namestring required

Changes

No recorded changes to this operation across all 5 revisions of this API.