Segments
Get expiring user targets for segment
Contexts are now available
After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should use Get expiring targets for segment instead of this endpoint. To learn more, read Contexts.
Get a list of a segment's user targets that are scheduled for removal.
get/api/v2/segments/{projectKey}/{segmentKey}/expiring-user-targets/{environmentKey}
Path parameters
projectKeystring string required
The project key
The project key
environmentKeystring string required
The environment key
The environment key
segmentKeystring string required
The segment key
The segment key
Response
Expiring user target response
Example response
{
"items": [
{
"_id": "12ab3c45de678910fgh12345",
"_version": 1,
"userKey": "example-user-key",
"targetType": "included",
"variationId": "ce67d625-a8b9-4fb5-a344-ab909d9d4f4d"
}
]
}