provider Access tokens POST
/api/v2/tokens/{id}/reset @utdk/launchdarkly
/api/v2/tokens/{id}/reset Reset access token
Reset an access token's secret key with an optional expiry time for the old key.
- id path required
- The ID of the access token to update
- string
- expiry query
- An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately.
- integer
Try it
Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import launchdarkly from '@utdk/launchdarkly';
await launchdarkly.resettoken()