GitLab API icon

GitLab API

Gitlab

Actions1062

Users → postApiV4UsersIdEmails

AI-generated

Summary

Adds an email address to a specified GitLab user via the POST /api/v4/users/{id}/emails endpoint.

Inputs

  • id (required) — The ID of the user to which the email will be added.
  • body (required) — The email object to add, as defined by the GitLab API (see postApiV4UsersIdEmails definition).
  • skipAuthentication — Whether to skip authentication; if true, no credentials are used.
  • baseUrl — Base URL of the GitLab instance (e.g., https://gitlab.com or a self‑hosted URL).
  • method — HTTP method to use; for this operation the effective method is POST.

Output shape

object

The response from the GitLab API containing the created email object.

Links

Discussion