GitLab API

GitlabTool

Actions1095

Group_access_tokens → postApiV4GroupsIdAccessTokens

AI-generated

Summary

Create a new access token for a GitLab group by providing the group ID and necessary token details in the request body.

Inputs

  • id (required) — The ID of the GitLab group for which to create the access token.
  • request body (required) — The details of the access token to be created as per GitLab's API specification (postApiV4GroupsIdAccessTokens schema).
  • baseUrl — The GitLab instance base URL, defaulting to https://gitlab.com.
  • skipAuthentication — If set to true, skips authentication for this request.

Output shape

An object representing the newly created group access token, as returned by the GitLab API.

The operation returns the created access token details in the response body. Authentication is required unless explicitly skipped. The path parameter 'id' must be provided. The exact response fields depend on GitLab's API specification for group access tokens.

Examples

Example 1: Create group access token with specified scopes and expiry.

Supply the group ID as the 'id' path parameter and define token attributes such as name, scopes, and expiry date in the request body.

Links

Discussion