GitLab API icon

GitLab API

Gitlab

Actions1062

Personal_access_tokens → postApiV4GroupsIdAccessTokensSelfRotate

AI-generated

Summary

Rotate the personal access token for a specified GitLab group by sending a POST request to the group's access tokens self-rotate API endpoint.

Inputs

  • Id (required) — The ID of the GitLab group for which to rotate the personal access token.
  • Skip Authentication — Set to true to skip authentication for this request; by default, authentication via GitLab API credentials is used.
  • baseUrl — The base URL of the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

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

The output contains the response body from the POST request to '/api/v4/groups/{id}/access_tokens/self/rotate'. The operation requires the group ID path parameter. Authentication is required unless explicitly skipped.

Examples

Example 1: Rotate the personal access token for group with ID '12345' using default GitLab.com URL.

Set path parameter 'Id' to '12345' and leave other options at default; ensure GitLab API credentials are configured.

Links

Discussion