Skip to main content

Regenerate PAK

PUT 

https://app.tolgee.io/v2/pats/:id/regenerate

Regenerates Personal Access Token. It generates new token value and updates its time of expiration.

Request

Path Parameters

    id int64required

Bodyrequired

    expiresAtint64

    Expiration date in epoch format (milliseconds). When null key never expires.

    Example: 1661172869000

Responses

OK

Schema
    createdAtint64required
    descriptionstringrequired
    expiresAtint64
    idint64required
    lastUsedAtint64
    tokenstringrequired
    updatedAtint64required

Authorization: http

name: SuperJwtTokentype: httpdescription: Super JWT token is required for sensitive operations when user has set 2FA. You can obtain super JWT token via `/v2/user/generate-super-token` endpoint. But be careful! Super JWT Token has super powers!scheme: bearerbearerFormat: JWT
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://app.tolgee.io/v2/pats/:id/regenerate");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"expiresAt\": 1661172869000\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://app.tolgee.io
Auth
Parameters
— pathrequired
Body required
{
  "expiresAt": 1661172869000
}
ResponseClear

Click the Send API Request button above and see the response here!