Skip to content

Rotate a group or project access token for a group

POST
/api/v4/groups/{id}/manage/resource_access_tokens/{prat_id}/rotate

Rotates a specified group or project access token associated with a top-level group. This revokes the previous token and creates a new token.

id
required
One of:
string

The ID or URL-encoded path of the group

prat_id
required
integer

The ID of the resource access token

Media type application/json
object
expires_at

The expiration date of the token

string format: date
nullable
Example
2021-01-31

No Content

Bad Request

Not Found