All URIs are relative to /api/v2
Method | HTTP request | Description |
---|---|---|
getExpiringUserTargetsForUser | GET /users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey} | Get expiring dates on flags for user |
getUserFlagSetting | GET /users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey} | Fetch a single flag setting for a user by key. |
getUserFlagSettings | GET /users/{projectKey}/{environmentKey}/{userKey}/flags | Fetch a single flag setting for a user by key. |
patchExpiringUserTargetsForFlags | PATCH /users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey} | Update, add, or delete expiring user targets for a single user on all flags |
putFlagSetting | PUT /users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey} | Specifically enable or disable a feature flag for a user based on their key. |
Get expiring dates on flags for user
getExpiringUserTargetsForUser projectKey=value environmentKey=value userKey=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. | |
userKey | string | The user's key. |
UserTargetingExpirationOnFlagsForUser
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Fetch a single flag setting for a user by key.
getUserFlagSetting projectKey=value environmentKey=value userKey=value featureFlagKey=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. | |
userKey | string | The user's key. | |
featureFlagKey | string | The feature flag's key. The key identifies the flag in your code. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Fetch a single flag setting for a user by key.
getUserFlagSettings projectKey=value environmentKey=value userKey=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. | |
userKey | string | The user's key. |
- 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 for a single user on all flags
patchExpiringUserTargetsForFlags projectKey=value environmentKey=value userKey=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. | |
userKey | string | The user's key. | |
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. |
UserTargetingExpirationOnFlagsForUser
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Specifically enable or disable a feature flag for a user based on their key.
putFlagSetting projectKey=value environmentKey=value userKey=value featureFlagKey=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. | |
userKey | string | The user's key. | |
featureFlagKey | string | The feature flag's key. The key identifies the flag in your code. | |
userSettingsBody | UserSettingsBody |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]