Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/group_access_tokens.md')
-rw-r--r--doc/api/group_access_tokens.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/api/group_access_tokens.md b/doc/api/group_access_tokens.md
index d8b221a8f94..b99c91d2e5c 100644
--- a/doc/api/group_access_tokens.md
+++ b/doc/api/group_access_tokens.md
@@ -1,5 +1,5 @@
---
-stage: Manage
+stage: Govern
group: Authentication and Authorization
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
---
@@ -143,6 +143,24 @@ POST /groups/:id/access_tokens/:token_id/rotate
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/groups/<group_id>/access_tokens/<token_id>/rotate"
```
+Example response:
+
+```json
+{
+ "id": 42,
+ "name": "Rotated Token",
+ "revoked": false,
+ "created_at": "2023-08-01T15:00:00.000Z",
+ "scopes": ["api"],
+ "user_id": 1337,
+ "last_used_at": null,
+ "active": true,
+ "expires_at": "2023-08-15",
+ "access_level": 30,
+ "token": "s3cr3t"
+}
+```
+
### Responses
- `200: OK` if existing token is successfully revoked and the new token is created.