GitLab API

GitlabTool

Actions1095

Groups → putApiV4GroupsIdMembersUserIdState

AI-generated

Summary

Update the state of a specific group member in GitLab by setting the membership state for a given user ID within a specified group ID.

Inputs

  • id (required) — The ID of the group to update the member state for.
  • user_id (required) — The user ID of the group member whose state is being updated.
  • putApiV4GroupsIdMembersUserIdState (required) — The request body containing the new state to apply to the group member.
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.
  • skipAuthentication — Boolean to determine whether to skip authentication; defaults to false.

Output shape

a single record representing the updated group member state as returned from the GitLab API.

The operation fully requires the group ID, user ID, and the state object in the request body. Authentication is required unless explicitly skipped. The response reflects the updated membership state from GitLab.

Links

Discussion