GitLab API

GitlabTool

Actions1095

Users → postApiV4UsersUserIdPersonalAccessTokens

AI-generated

Summary

Creates a GitLab personal access token for the specified user by issuing a POST request to /api/v4/users/{user_id}/personal_access_tokens. The GitLab API credential supplies the base URL unless authentication is skipped.

Inputs

  • Skip Authentication — When enabled, skips the configured GitLab API authentication.
  • Base URL — GitLab instance URL; defaults to https://gitlab.com. The source says the base URL is normally defined in the GitLab API credential.
  • Method — HTTP method selector, declared with get as its default. This operation's path describes token creation, but the properties do not expose a body schema or token-specific fields.
  • User_id (required) — ID of the user for whom the token is created.

Output shape

A single API response item.

The supplied properties and source do not establish the response fields or whether the token is created successfully. The operation declares a required body parameter, but provides no editable body fields in the supplied properties.

Links

Discussion