← 返回首页
docs: correct rotate token example · python-gitlab/python-gitlab@c53e695 · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit c53e695

Browse files
authored andcommitted
docs: correct rotate token example
Rotate token returns a dict. Change example to print the entire dict. Closes: #2836
1 parent 001e596 commit c53e695

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/gl_objects/personal_access_tokens.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Rotate a personal access token and retrieve its new value::
5858
token.rotate()
5959
print(token.token)
6060
# or directly using a token ID
61-
new_token = gl.personal_access_tokens.rotate(42)
62-
print(new_token.token)
61+
new_token_dict = gl.personal_access_tokens.rotate(42)
62+
print(new_token_dict)
6363

6464
Create a personal access token for a user (admin only)::
6565

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.