GitLab API icon

GitLab API

Gitlab

Actions1062

Group_access_tokens → postApiV4GroupsIdAccessTokensTokenIdRotate

AI-generated

Summary

Rotate an existing group access token in a GitLab group by its token ID, requesting the API to generate a new access token value for that token.

Inputs

  • id (required) — The ID of the GitLab group owning the access token.
  • token_id (required) — The ID of the specific access token to rotate.
  • postApiV4GroupsIdAccessTokensTokenIdRotate (required) — The request body schema containing additional parameters required by the rotate action, as defined by GitLab's API.

Output shape

a JSON object representing the new rotated access token details returned by GitLab's API

You must provide both path parameters ('id' and 'token_id') and a request body per the contained schema. The operation executes a POST to the path '/api/v4/groups/{id}/access_tokens/{token_id}/rotate'. Authentication via the configured GitLab API credential is required unless 'Skip Authentication' is enabled.

Links

Discussion