diff options
Diffstat (limited to 'doc/api/group_access_tokens.md')
-rw-r--r-- | doc/api/group_access_tokens.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/api/group_access_tokens.md b/doc/api/group_access_tokens.md index 446aa3668d8..2493dfcc039 100644 --- a/doc/api/group_access_tokens.md +++ b/doc/api/group_access_tokens.md @@ -81,7 +81,8 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a ## Create a group access token -> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/77236) in GitLab 14.7. +> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/77236) in GitLab 14.7. +> - The `expires_at` attribute default was [introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/120213) in GitLab 16.0. Create a [group access token](../user/group/settings/group_access_tokens.md). You must have the Owner role for the group to create group access tokens. @@ -96,7 +97,7 @@ POST groups/:id/access_tokens | `name` | String | yes | Name of the group access token | | `scopes` | `Array[String]` | yes | [List of scopes](../user/group/settings/group_access_tokens.md#scopes-for-a-group-access-token) | | `access_level` | Integer | no | Access level. Valid values are `10` (Guest), `20` (Reporter), `30` (Developer), `40` (Maintainer), and `50` (Owner). | -| `expires_at` | Date | no | Token expires at midnight UTC on that date | +| `expires_at` | Date | yes | Expiration date of the access token in ISO format (`YYYY-MM-DD`). The date cannot be set later than the [maximum allowable lifetime of an access token](../user/profile/personal_access_tokens.md#when-personal-access-tokens-expire). | ```shell curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" \ |