File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/main/java/org/gitlab4j/api Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public PersonalAccessToken rotatePersonalAccessToken() throws GitLabApiException
34
34
35
35
/**
36
36
* Rotates the given personal access token.
37
- * The token is revoked and a new one which will expire in one week is created to replace it.
37
+ * The token is revoked and a new one which will expire at the given expiresAt-date is created to replace it.
38
38
* Only working with GitLab 16.0 and above.
39
39
*
40
40
* <pre><code>GitLab Endpoint: POST /personal_access_tokens/self/rotate</code></pre>
@@ -48,12 +48,13 @@ public PersonalAccessToken rotatePersonalAccessToken(Date expiresAt) throws GitL
48
48
}
49
49
50
50
/**
51
- * Rotates the given personal access token.
52
- * The token is revoked and a new one which will expire in one week is created to replace it.
51
+ * Rotates a specific personal access token.
52
+ * The token is revoked and a new one which will expire at the given expiresAt-date is created to replace it.
53
53
* Only working with GitLab 16.0 and above.
54
54
*
55
- * <pre><code>GitLab Endpoint: POST /personal_access_tokens/:id/rotate </code></pre>
55
+ * <pre><code>GitLab Endpoint: POST /personal_access_tokens/:id</code></pre>
56
56
*
57
+ * @param id ID of the personal access token
57
58
* @param expiresAt Expiration date of the access token
58
59
* @return the newly created PersonalAccessToken.
59
60
* @throws GitLabApiException if any exception occurs
You can’t perform that action at this time.
0 commit comments