python-gitlab / python-gitlab

A python wrapper for the GitLab API.

Home Page:https://python-gitlab.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RFE: support the personal_access_tokens/:id/rotate endpoint

svenXY opened this issue · comments

Description of the problem, including code/CLI snippet

gitlab from 16.6 supports to rotate (i.e. refresh lifetime) for personal access tokens:
https://docs.gitlab.com/ee/api/personal_access_tokens.html#rotate-a-personal-access-token

Expected Behavior

Tokens can be rotated programmatically

Actual Behavior

the rotate endpoint is not yet supported by python-gitlab