GitLab API icon

GitLab API

Gitlab

Actions1062

Group_access_tokens → postApiV4GroupsIdAccessTokens

AI-generated

Summary

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

Inputs

  • Id (required) — The unique identifier of the GitLab group to create the access token for.
  • Request Body (required) — The details of the access token to create, conforming to the GitLab API schema for group access tokens.

Output shape

a JSON object representing the newly created group access token, including token information and metadata.

The output corresponds directly to the response schema of the GitLab API's group access token creation endpoint. Authentication via GitLab API credentials is required unless 'Skip Authentication' is enabled.

Examples

Example 1: Create an access token for group ID 123 with specific scopes and expiry

Set 'Id' to '123' and provide the access token details in the request body according to the GitLab API specifications.

Links

Discussion