Skip to content

Commit c53e695

Browse files
JohnVillalovosnejch
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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/gl_objects/personal_access_tokens.rst

+2-2
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)