For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Reset an access token’s secret key with an optional expiry time for the old key.
curl --request POST \
--url https://app.launchdarkly.com/api/v2/tokens/{id}/reset \
--header 'Authorization: <api-key>'{
"_id": "61095542756dba551110ae21",
"ownerId": "569f514156e003339cfd3917",
"memberId": "569f514183f2164430000002",
"creationDate": "1628001602644",
"lastModified": "1628001602644",
"_links": {
"parent": {
"href": "/api/v2/tokens",
"type": "application/json"
},
"self": {
"href": "/api/v2/tokens/61095542756dba551110ae21",
"type": "application/json"
}
},
"_member": {
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"role": "admin",
"email": "ariel@acme.com",
"firstName": "Ariel",
"lastName": "Flores"
},
"name": "Example reader token",
"description": "A reader token used in testing and examples",
"customRoleIds": [],
"inlineRole": [],
"role": "reader",
"token": "1234",
"serviceToken": false,
"defaultApiVersion": 20240415,
"lastUsed": "0"
}Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The ID of the access token to update
An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately.
Access token response
The ID of the access token
"61095542756dba551110ae21"
The ID of the owner of the account for the access token
"569f514156e003339cfd3917"
The ID of the member who created the access token
"569f514183f2164430000002"
Timestamp of when the access token was created
"1628001602644"
Timestamp of the last modification of the access token
"1628001602644"
The location and content type of related resources
Show child attributes
{
"parent": {
"href": "/api/v2/tokens",
"type": "application/json"
},
"self": {
"href": "/api/v2/tokens/61095542756dba551110ae21",
"type": "application/json"
}
}Details on the member who created the access token
Show child attributes
A human-friendly name for the access token
"Example reader token"
A description for the access token
"A reader token used in testing and examples"
A list of custom role IDs to use as access limits for the access token
[]An array of policy statements, with three attributes: effect, resources, actions. May be used in place of a role.
Show child attributes
[]Base role for the token
"reader"
The token value. When creating or resetting, contains the entire token value. Otherwise, contains the last four characters.
"1234"
Whether this is a service token or a personal token
false
The default API version for this token
20240415
Timestamp of when the access token was last used
"0"
curl --request POST \
--url https://app.launchdarkly.com/api/v2/tokens/{id}/reset \
--header 'Authorization: <api-key>'{
"_id": "61095542756dba551110ae21",
"ownerId": "569f514156e003339cfd3917",
"memberId": "569f514183f2164430000002",
"creationDate": "1628001602644",
"lastModified": "1628001602644",
"_links": {
"parent": {
"href": "/api/v2/tokens",
"type": "application/json"
},
"self": {
"href": "/api/v2/tokens/61095542756dba551110ae21",
"type": "application/json"
}
},
"_member": {
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"role": "admin",
"email": "ariel@acme.com",
"firstName": "Ariel",
"lastName": "Flores"
},
"name": "Example reader token",
"description": "A reader token used in testing and examples",
"customRoleIds": [],
"inlineRole": [],
"role": "reader",
"token": "1234",
"serviceToken": false,
"defaultApiVersion": 20240415,
"lastUsed": "0"
}