GitLab API

GitlabTool

Actions1095

Group_access_tokens → postApiV4GroupsIdAccessTokensTokenIdRotate

AI-generated

Summary

Rotate a specific group access token in GitLab using the group's ID and the token's ID, replacing the existing token with a new one to enhance security.

Inputs

  • id (required) — The group ID for which the access token exists.
  • token_id (required) — The ID of the access token to rotate.
  • postApiV4GroupsIdAccessTokensTokenIdRotate (required) — Request body content matching the schema required to perform the token rotation.

Output shape

a single object representing the rotated group access token as returned by the GitLab API

The response contains the updated token details after rotation. Authentication is required unless explicitly skipped; the baseUrl defaults to https://gitlab.com but can be customized.

Links

Discussion