GitLab API icon

GitLab API

Gitlab

Actions1062

Members → putApiV4GroupsIdMembersUserId

AI-generated

Summary

Update the access level and membership details of a specific user in a GitLab group by sending a PUT request to the group's member endpoint.

Inputs

  • id (required) — The ID of the GitLab group in which the member's details will be updated.
  • user_id (required) — The user ID of the member whose group membership details are being modified.
  • putApiV4GroupsIdMembersUserId (required) — The request body containing the updated membership information as defined by the GitLab API schema for updating group members.
  • baseUrl — The base URL for the GitLab instance; defaults to https://gitlab.com if not specified.
  • skipAuthentication — Whether to skip authenticating this request; defaults to false meaning authentication is used.

Output shape

a single record of the updated member's details as returned by the GitLab API

The response contains the updated membership information of the specified user in the group. Successful update returns the updated member object; errors will be represented in the API error response format.

Examples

Example 1: Update a group member's access level

Set 'id' to the target group ID, 'user_id' to the member's user ID, and provide the updated access level details in the request body.

Links

Discussion