GitLab API

GitlabTool

Actions1095

Personal_access_tokens → postApiV4GroupsIdAccessTokensSelfRotate

AI-generated

Summary

Rotate the personal access token for a specified GitLab group by POSTing to the group's access token self-rotate endpoint.

Inputs

  • id (required) — The ID of the GitLab group for which the personal access token will be rotated.
  • Skip Authentication — Optionally skip authentication (default is false, meaning authentication is used).
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a single JSON object representing the newly rotated personal access token details

The operation sends a POST request to /api/v4/groups/{id}/access_tokens/self/rotate returning the rotated personal access token. Requires the group ID in path parameters. Authentication via the configured GitLab API credential is used unless skipped.

Links

Discussion