Purpose:
Resets and regenerates the access token for an existing service account.
The newly generated token can optionally be configured to never expire.
POST /idp/api/v1/company/serviceAccount/{serviceAccountId}/token/reset?neverExpires=true
| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceAccountId | UUID | ✅ Yes | Identifier of the service account whose token will be reset |
Requires Bearer Token
User must have ACCOUNT_ADMIN or similar administrative privileges.
| Header | Required |
|---|---|
| Authorization: Bearer | ✅ Yes |
curl -X POST "https://be.datagol.ai/idp/api/v1/company/serviceAccount/{serviceAccountId}/token/reset?neverExpires=true" \
-H "Authorization: Bearer <token>"
Resets the existing service account token and generates a new one.
If neverExpires=true is provided, the newly generated token will not expire.