All URIs are relative to /api/v2
| Method | HTTP request | Description |
|---|---|---|
| deleteUserSegment | DELETE /segments/{projectKey}/{environmentKey}/{userSegmentKey} | Delete a user segment. |
| getExpiringUserTargetsOnSegment | GET /segments/{projectKey}/{userSegmentKey}/expiring-user-targets/{environmentKey} | Get expiring user targets for user segment |
| getUserSegment | GET /segments/{projectKey}/{environmentKey}/{userSegmentKey} | Get a single user segment by key. |
| getUserSegments | GET /segments/{projectKey}/{environmentKey} | Get a list of all user segments in the given project. |
| patchExpiringUserTargetsOnSegment | PATCH /segments/{projectKey}/{userSegmentKey}/expiring-user-targets/{environmentKey} | Update, add, or delete expiring user targets on user segment |
| patchUserSegment | PATCH /segments/{projectKey}/{environmentKey}/{userSegmentKey} | Perform a partial update to a user segment. |
| postUserSegment | POST /segments/{projectKey}/{environmentKey} | Creates a new user segment. |
| updateBigSegmentTargets | POST /segments/{projectKey}/{environmentKey}/{userSegmentKey}/users | Update targets included or excluded in a big segment |
Delete a user segment.
deleteUserSegment projectKey=value environmentKey=value userSegmentKey=value| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
| environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
| userSegmentKey | string | The user segment's key. The key identifies the user segment in your code. |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Get expiring user targets for user segment
getExpiringUserTargetsOnSegment projectKey=value environmentKey=value userSegmentKey=value| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
| environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
| userSegmentKey | string | The user segment's key. The key identifies the user segment in your code. |
UserTargetingExpirationForSegment
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Get a single user segment by key.
getUserSegment projectKey=value environmentKey=value userSegmentKey=value| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
| environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
| userSegmentKey | string | The user segment's key. The key identifies the user segment in your code. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Get a list of all user segments in the given project.
getUserSegments projectKey=value environmentKey=value tag=value| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
| environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
| tag | string | Filter by tag. A tag can be used to group flags across projects. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Update, add, or delete expiring user targets on user segment
patchExpiringUserTargetsOnSegment projectKey=value environmentKey=value userSegmentKey=value| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
| environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
| userSegmentKey | string | The user segment's key. The key identifies the user segment in your code. | |
| semanticPatchWithComment | map | Requires a Semantic Patch representation of the desired changes to the resource. 'https://apidocs.launchdarkly.com/reference#updates-via-semantic-patches'. The addition of comments is also supported. |
UserTargetingExpirationForSegment
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Perform a partial update to a user segment.
patchUserSegment projectKey=value environmentKey=value userSegmentKey=value| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
| environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
| userSegmentKey | string | The user segment's key. The key identifies the user segment in your code. | |
| patchOnly | array[PatchOperation] | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' Feature flag patches also support JSON Merge Patch format. 'https://tools.ietf.org/html/rfc7386' The addition of comments is also supported. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Creates a new user segment.
postUserSegment projectKey=value environmentKey=value| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
| environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
| userSegmentBody | UserSegmentBody | Create a new user segment. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Update targets included or excluded in a big segment
updateBigSegmentTargets projectKey=value environmentKey=value userSegmentKey=value| Name | Type | Description | Notes |
|---|---|---|---|
| projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
| environmentKey | string | The environment key, used to tie together flag configuration and users under one environment so they can be managed together. | |
| userSegmentKey | string | The user segment's key. The key identifies the user segment in your code. | |
| bigSegmentTargetsBody | BigSegmentTargetsBody | Add or remove user targets to the included or excluded lists on a big segment. Contact your account manager for early access to this feature. |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]