Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (26 loc) · 1.48 KB

regeneratepersonalaccesstoken.md

File metadata and controls

36 lines (26 loc) · 1.48 KB

Regenerate Personal Access Token

HTTP MethodURLRequires Auth
POST/api/v1/users.regeneratePersonalAccessTokenyes

{% hint style="info" %}

  • Permission required: create-personal-access-tokens
  • This endpoint required 2FA. Refer to #call-an-endpoint-with-2fa {% endhint %}

Body Parameters

KeyExample ValueDescription
tokenName*mypersonaltokenThe name of the token.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type:application/json" \
     http://localhost:3000/api/v1/users.regeneratePersonalAccessToken \
     -d '{ 
          "tokenName": "mypersonaltoken" }'

Example Response

{
    "token": "sSfSoNW8Pb7S8BHEz3uJXYRM3__ML9GxPY1PxGzqAcn",
    "success": true
}

Change Log

VersionDescription
0.69.0Added