GitLab API

GitlabTool

Actions1095

Users → postApiV4UsersIdGpgKeys

AI-generated

Summary

Adds a GPG key to a GitLab user by sending a POST request to /api/v4/users/{id}/gpg_keys. The node uses the GitLab API credential unless authentication is skipped; the base URL is configured through that credential.

Inputs

  • Skip Authentication — Defaults to false. When enabled, skips the GitLab API credential.
  • Base URL — Defaults to https://gitlab.com; the source indicates the effective base URL is defined in the GitLab API credential.
  • Method — HTTP method selector, defaulting to GET in the UI. The operation path is for adding a GPG key, which uses POST.
  • Path Parameters: Id (required) — User ID for the /api/v4/users/{id}/gpg_keys path.
  • Request Body (required) — The operation requires a request body matching the postApiV4UsersIdGpgKeys schema. Its fields are not exposed in the supplied properties.

Output shape

A single response from the GitLab API.

The source pack does not show the HTTP execution or response handling, so the exact returned fields and error shape are unspecified.

Examples

Example 1: Add a GPG key to a user

Set the user ID, provide a body matching the operation schema, and use the GitLab API credential.

Links

Discussion