Project Access Token and Group Access Token APIs should support self for easy token rotation
Currently, the Project Access Token API https://docs.gitlab.com/ee/api/project_access_tokens.html, and the Group Access Token API, https://docs.gitlab.com/ee/api/group_access_tokens.html, do not support the self
identifier.
This makes the task of rotating a token much more difficult, since token rotation clients need to know the ID of the token in order to rotate it.
This also differs from Personal Access Tokens, https://docs.gitlab.com/ee/api/personal_access_tokens.html, which do support self
as an ID: see https://docs.gitlab.com/ee/api/personal_access_tokens.html#using-a-request-header
This allows tooling to automatically rotate a token without additional information. For example: gitlab-com/gl-infra/pmv!398 (merged)
Edited by Andrew Newdigate