GitLab API icon

GitLab API

Gitlab

Actions1062

Project_access_tokens → postApiV4ProjectsIdAccessTokensTokenIdRotate

AI-generated

Summary

Rotates a project access token for the specified project and token ID, returning the new token details.

Inputs

  • id (required) — The ID of the project
  • token_id (required) — The ID of the access token to rotate
  • skipAuthentication — Whether to skip authentication
  • baseUrl — Base URL for the GitLab instance (defaults to https://gitlab.com)
  • authentication — Authentication method (hidden, defaults to gitlabApi)

Output shape

object

Contains the rotated access token details as returned by the GitLab API (token value, name, scopes, etc.).

Links

Discussion