GitLab API icon

GitLab API

Gitlab

Actions1062

Users → postApiV4UsersIdBlock

AI-generated

Summary

Blocks a GitLab user by ID

Inputs

  • id (required) — The ID of the user to block (integer)
  • skipAuthentication — If set to true, skips using credentials (default: false)
  • baseUrl — Base URL of the GitLab instance (default: https://gitlab.com)

Output shape

The raw response from the GitLab API /api/v4/users/{id}/block endpoint, typically containing the blocked user object.

On success the operation returns the API response; on error it throws.

Links

Discussion