Skip to main content
POST
/
api
/
svc
/
v1
/
virtual-accounts
/
{id}
/
regenerate-token
Regenerate token for a virtual account
curl --request POST \
  --url https://{controlPlaneURL}/api/svc/v1/virtual-accounts/{id}/regenerate-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "gracePeriodInDays": 30
}'
{
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

serviceaccount id

Body

application/json
gracePeriodInDays
number
required

Grace period in days for which the old token will remain valid after regeneration

Required range: 0 <= x <= 365
Example:

30

Response

200 - application/json

Token for the virtual account

token
string
required

Token for the virtual account