-
Hi, I wanna rotate a project access token but with a custom But I'm not sure how to do in I tried following: >>> type(token) # for reference
<class 'gitlab.v4.objects.project_access_tokens.ProjectAccessToken'>
>>> token.rotate({"expires_at":"2024-12-12"})
Traceback (most recent call last):
File "<pyshell#41>", line 1, in <module>
token.rotate({"expires_at":"2024-12-12"})
TypeError: ObjectRotateMixin.rotate() takes 1 positional argument but 2 were given Maybe someone can help me out here? |
Beta Was this translation helpful? Give feedback.
Answered by
nejch
Oct 30, 2024
Replies: 1 comment 3 replies
-
@botkero this should already work with See source: python-gitlab/gitlab/mixins.py Line 668 in 541a7e3 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
botkero
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@botkero this should already work with
token.rotate(expires_at="2024-12-12")
. Please let us know if not!See source:
python-gitlab/gitlab/mixins.py
Line 668 in 541a7e3