GitLab API

GitlabTool

Actions1095

Users → postApiV4UsersIdBlock

AI-generated

Summary

Block a GitLab user by their user ID, sending a POST request to the /api/v4/users/{id}/block endpoint.

Inputs

  • Id (required) — The ID of the user to block.

Output shape

a single JSON object representing the response from GitLab after blocking the user

The ID path parameter is required. The operation performs a POST request to the GitLab API endpoint /api/v4/users/{id}/block. No pagination applies.

Examples

Example 1: Block user with ID 12345

Set 'Id' path parameter to '12345' and execute operation.

Links

Discussion