summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-17 09:08:20 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-17 09:08:20 +0000
commit91c2554bcf93c3c41aa830da4dd7a2d4b7483e2d (patch)
treedb4ba29b7ad5398b3eebd845c442d4c26558817c /doc/api
parent3974bc83f3bfc8a7757dcac0319e966042dc4356 (diff)
downloadgitlab-ce-91c2554bcf93c3c41aa830da4dd7a2d4b7483e2d.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/personal_access_tokens.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/doc/api/personal_access_tokens.md b/doc/api/personal_access_tokens.md
index f3dff4aca2c..c49af2a745c 100644
--- a/doc/api/personal_access_tokens.md
+++ b/doc/api/personal_access_tokens.md
@@ -72,12 +72,17 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a
## Revoke a personal access token
-### Revoke a personal access token by ID
+Revoke a personal access token by either:
+
+- Using the ID of the personal access token.
+- Passing it to the API in a header.
+
+### Using a personal access token ID
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/216004) in GitLab 13.3.
> - [Moved](https://gitlab.com/gitlab-org/gitlab/-/issues/270200) from GitLab Ultimate to GitLab Free in 13.6.
-Revoke a personal access token by ID.
+Revoke a personal access token using its ID.
```plaintext
DELETE /personal_access_tokens/:id
@@ -99,7 +104,7 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://git
- `204: No Content` if successfully revoked.
- `400: Bad Request` if not revoked successfully.
-### Revoke a personal access token using a header
+### Using a request header
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/350240) in GitLab 15.0.