GitLab API icon

GitLab API

Gitlab

Actions1062

Personal_access_tokens → postApiV4PersonalAccessTokensSelfRotate

AI-generated

Summary

Rotate the current user's personal access token by sending a POST request to the /api/v4/personal_access_tokens/self/rotate endpoint.

Inputs

  • skipAuthentication — Optional boolean to skip authentication for the request; defaults to false.
  • baseUrl — Base URL of the GitLab server; defaults to https://gitlab.com.

Output shape

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

The operation requires authentication by default unless skipAuthentication is set to true. It returns the new personal access token information in the response body.

Links

Discussion