This repository contains a client library for LaunchDarkly's REST API. This client was automatically generated from our OpenAPI specification using a code generation library.
This REST API is for custom integrations, data export, or automating your feature flag workflows. DO NOT use this client library to include feature flags in your web or mobile application. To integrate feature flags with your application, read the SDK documentation.
This client library is only compatible with the latest version of our REST API, version 20220603
. Previous versions of this client library, prior to version 10.0.0, are only compatible with earlier versions of our REST API. When you create an access token, you can set the REST API version associated with the token. By default, API requests you send using the token will use the specified API version. To learn more, read Versioning.
View our sample code for example usage.
LaunchDarkly's REST API uses the HTTPS protocol with a minimum TLS version of 1.2.
All REST API resources are authenticated with either personal or service access tokens, or session cookies. Other authentication mechanisms are not supported. You can manage personal access tokens on your Authorization page in the LaunchDarkly UI.
LaunchDarkly also has SDK keys, mobile keys, and client-side IDs that are used by our server-side SDKs, mobile SDKs, and JavaScript-based SDKs, respectively. These keys cannot be used to access our REST API. These keys are environment-specific, and can only perform read-only operations such as fetching feature flag settings.
Auth mechanism | Allowed resources | Use cases |
---|---|---|
Personal or service access tokens | Can be customized on a per-token basis | Building scripts, custom integrations, data export. |
SDK keys | Can only access read-only resources specific to server-side SDKs. Restricted to a single environment. | Server-side SDKs |
Mobile keys | Can only access read-only resources specific to mobile SDKs, and only for flags marked available to mobile keys. Restricted to a single environment. | Mobile SDKs |
Client-side ID | Can only access read-only resources specific to JavaScript-based client-side SDKs, and only for flags marked available to client-side. Restricted to a single environment. | Client-side JavaScript |
Access tokens should never be exposed in untrusted contexts. Never put an access token in client-side JavaScript, or embed it in a mobile application. LaunchDarkly has special mobile keys that you can embed in mobile apps. If you accidentally expose an access token or SDK key, you can reset it from your Authorization page.
The client-side ID is safe to embed in untrusted contexts. It's designed for use in client-side JavaScript.
The preferred way to authenticate with the API is by adding an Authorization
header containing your access token to your requests. The value of the Authorization
header must be your access token.
Manage personal access tokens from the Authorization page.
For testing purposes, you can make API calls directly from your web browser. If you are logged in to the LaunchDarkly application, the API will use your existing session to authenticate calls.
If you have a role other than Admin, or have a custom role defined, you may not have permission to perform some API calls. You will receive a 401
response code in that case.
LaunchDarkly validates that the Origin header for any API request authenticated by a session cookie matches the expected Origin header. The expected Origin header is
https://app.launchdarkly.com
.If the Origin header does not match what's expected, LaunchDarkly returns an error. This error can prevent the LaunchDarkly app from working correctly.
Any browser extension that intentionally changes the Origin header can cause this problem. For example, the
Allow-Control-Allow-Origin: *
Chrome extension changes the Origin header tohttp://evil.com
and causes the app to fail.To prevent this error, do not modify your Origin header.
LaunchDarkly does not require origin matching when authenticating with an access token, so this issue does not affect normal API usage.
All resources expect and return JSON response bodies. Error responses also send a JSON body. To learn more about the error format of the API, read Errors.
In practice this means that you always get a response with a Content-Type
header set to application/json
.
In addition, request bodies for PATCH
, POST
, and PUT
requests must be encoded as JSON with a Content-Type
header set to application/json
.
When you fetch a list of resources, the response includes only the most important attributes of each resource. This is a summary representation of the resource. When you fetch an individual resource, such as a single feature flag, you receive a detailed representation of the resource.
The best way to find a detailed representation is to follow links. Every summary representation includes a link to its detailed representation.
Sometimes the detailed representation of a resource does not include all of the attributes of the resource by default. If this is the case, the request method will clearly document this and describe which attributes you can include in an expanded response.
To include the additional attributes, append the expand
request parameter to your request and add a comma-separated list of the attributes to include. For example, when you append ?expand=members,maintainers
to the Get team endpoint, the expanded response includes both of these attributes.
The best way to navigate the API is by following links. These are attributes in representations that link to other resources. The API always uses the same format for links:
- Links to other resources within the API are encapsulated in a
_links
object - If the resource has a corresponding link to HTML content on the site, it is stored in a special
_site
link
Each link has two attributes:
- An
href
, which contains the URL - A
type
, which describes the content type
For example, a feature resource might return the following:
{
\"_links\": {
\"parent\": {
\"href\": \"/api/features\",
\"type\": \"application/json\"
},
\"self\": {
\"href\": \"/api/features/sort.order\",
\"type\": \"application/json\"
}
},
\"_site\": {
\"href\": \"/features/sort.order\",
\"type\": \"text/html\"
}
}
From this, you can navigate to the parent collection of features by following the parent
link, or navigate to the site page for the feature by following the _site
link.
Collections are always represented as a JSON object with an items
attribute containing an array of representations. Like all other representations, collections have _links
defined at the top level.
Paginated collections include first
, last
, next
, and prev
links containing a URL with the respective set of elements in the collection.
Resources that accept partial updates use the PATCH
verb. Most resources support the JSON patch format. Some resources also support the JSON merge patch format, and some resources support the semantic patch format, which is a way to specify the modifications to perform as a set of executable instructions. Each resource supports optional comments that you can submit with updates. Comments appear in outgoing webhooks, the audit log, and other integrations.
When a resource supports both JSON patch and semantic patch, we document both in the request method. However, the specific request body fields and descriptions included in our documentation only match one type of patch or the other.
JSON patch is a way to specify the modifications to perform on a resource. JSON patch uses paths and a limited set of operations to describe how to transform the current state of the resource into a new state. JSON patch documents are always arrays, where each element contains an operation, a path to the field to update, and the new value.
For example, in this feature flag representation:
{
\"name\": \"New recommendations engine\",
\"key\": \"engine.enable\",
\"description\": \"This is the description\",
...
}
You can change the feature flag's description with the following patch document:
[{ \"op\": \"replace\", \"path\": \"/description\", \"value\": \"This is the new description\" }]
You can specify multiple modifications to perform in a single request. You can also test that certain preconditions are met before applying the patch:
[
{ \"op\": \"test\", \"path\": \"/version\", \"value\": 10 },
{ \"op\": \"replace\", \"path\": \"/description\", \"value\": \"The new description\" }
]
The above patch request tests whether the feature flag's version
is 10
, and if so, changes the feature flag's description.
Attributes that are not editable, such as a resource's _links
, have names that start with an underscore.
JSON merge patch is another format for specifying the modifications to perform on a resource. JSON merge patch is less expressive than JSON patch. However, in many cases it is simpler to construct a merge patch document. For example, you can change a feature flag's description with the following merge patch document:
{
\"description\": \"New flag description\"
}
Some resources support the semantic patch format. A semantic patch is a way to specify the modifications to perform on a resource as a set of executable instructions.
Semantic patch allows you to be explicit about intent using precise, custom instructions. In many cases, you can define semantic patch instructions independently of the current state of the resource. This can be useful when defining a change that may be applied at a future date.
To make a semantic patch request, you must append domain-model=launchdarkly.semanticpatch
to your Content-Type
header.
Here's how:
Content-Type: application/json; domain-model=launchdarkly.semanticpatch
If you call a semantic patch resource without this header, you will receive a 400
response because your semantic patch will be interpreted as a JSON patch.
The body of a semantic patch request takes the following properties:
comment
(string): (Optional) A description of the update.environmentKey
(string): (Required for some resources only) The environment key.instructions
(array): (Required) A list of actions the update should perform. Each action in the list must be an object with akind
property that indicates the instruction. If the instruction requires parameters, you must include those parameters as additional fields in the object. The documentation for each resource that supports semantic patch includes the available instructions and any additional parameters.
For example:
{
\"comment\": \"optional comment\",
\"instructions\": [ {\"kind\": \"turnFlagOn\"} ]
}
If any instruction in the patch encounters an error, the endpoint returns an error and will not change the resource. In general, each instruction silently does nothing if the resource is already in the state you request.
You can submit optional comments with PATCH
changes.
To submit a comment along with a JSON patch document, use the following format:
{
\"comment\": \"This is a comment string\",
\"patch\": [{ \"op\": \"replace\", \"path\": \"/description\", \"value\": \"The new description\" }]
}
To submit a comment along with a JSON merge patch document, use the following format:
{
\"comment\": \"This is a comment string\",
\"merge\": { \"description\": \"New flag description\" }
}
To submit a comment along with a semantic patch, use the following format:
{
\"comment\": \"This is a comment string\",
\"instructions\": [ {\"kind\": \"turnFlagOn\"} ]
}
The API always returns errors in a common format. Here's an example:
{
\"code\": \"invalid_request\",
\"message\": \"A feature with that key already exists\",
\"id\": \"30ce6058-87da-11e4-b116-123b93f75cba\"
}
The code
indicates the general class of error. The message
is a human-readable explanation of what went wrong. The id
is a unique identifier. Use it when you're working with LaunchDarkly Support to debug a problem with a specific API call.
Code | Definition | Description | Possible Solution |
---|---|---|---|
400 | Invalid request | The request cannot be understood. | Ensure JSON syntax in request body is correct. |
401 | Invalid access token | Requestor is unauthorized or does not have permission for this API call. | Ensure your API access token is valid and has the appropriate permissions. |
403 | Forbidden | Requestor does not have access to this resource. | Ensure that the account member or access token has proper permissions set. |
404 | Invalid resource identifier | The requested resource is not valid. | Ensure that the resource is correctly identified by ID or key. |
405 | Method not allowed | The request method is not allowed on this resource. | Ensure that the HTTP verb is correct. |
409 | Conflict | The API request can not be completed because it conflicts with a concurrent API request. | Retry your request. |
422 | Unprocessable entity | The API request can not be completed because the update description can not be understood. | Ensure that the request body is correct for the type of patch you are using, either JSON patch or semantic patch. |
429 | Too many requests | Read Rate limiting. | Wait and try again later. |
The LaunchDarkly API supports Cross Origin Resource Sharing (CORS) for AJAX requests from any origin. If an Origin
header is given in a request, it will be echoed as an explicitly allowed origin. Otherwise the request returns a wildcard, Access-Control-Allow-Origin: *
. For more information on CORS, read the CORS W3C Recommendation. Example CORS headers might look like:
Access-Control-Allow-Headers: Accept, Content-Type, Content-Length, Accept-Encoding, Authorization
Access-Control-Allow-Methods: OPTIONS, GET, DELETE, PATCH
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 300
You can make authenticated CORS calls just as you would make same-origin calls, using either token or session-based authentication. If you are using session authentication, you should set the withCredentials
property for your xhr
request to true
. You should never expose your access tokens to untrusted entities.
We use several rate limiting strategies to ensure the availability of our APIs. Rate-limited calls to our APIs return a 429
status code. Calls to our APIs include headers indicating the current rate limit status. The specific headers returned depend on the API route being called. The limits differ based on the route, authentication mechanism, and other factors. Routes that are not rate limited may not contain any of the headers described below.
LaunchDarkly SDKs are never rate limited and do not use the API endpoints defined here. LaunchDarkly uses a different set of approaches, including streaming/server-sent events and a global CDN, to ensure availability to the routes used by LaunchDarkly SDKs.
Authenticated requests are subject to a global limit. This is the maximum number of calls that your account can make to the API per ten seconds. All service and personal access tokens on the account share this limit, so exceeding the limit with one access token will impact other tokens. Calls that are subject to global rate limits may return the headers below:
Header name | Description |
---|---|
X-Ratelimit-Global-Remaining |
The maximum number of requests the account is permitted to make per ten seconds. |
X-Ratelimit-Reset |
The time at which the current rate limit window resets in epoch milliseconds. |
We do not publicly document the specific number of calls that can be made globally. This limit may change, and we encourage clients to program against the specification, relying on the two headers defined above, rather than hardcoding to the current limit.
Some authenticated routes have custom rate limits. These also reset every ten seconds. Any service or personal access tokens hitting the same route share this limit, so exceeding the limit with one access token may impact other tokens. Calls that are subject to route-level rate limits return the headers below:
Header name | Description |
---|---|
X-Ratelimit-Route-Remaining |
The maximum number of requests to the current route the account is permitted to make per ten seconds. |
X-Ratelimit-Reset |
The time at which the current rate limit window resets in epoch milliseconds. |
A route represents a specific URL pattern and verb. For example, the Delete environment endpoint is considered a single route, and each call to delete an environment counts against your route-level rate limit for that route.
We do not publicly document the specific number of calls that an account can make to each endpoint per ten seconds. These limits may change, and we encourage clients to program against the specification, relying on the two headers defined above, rather than hardcoding to the current limits.
We also employ IP-based rate limiting on some API routes. If you hit an IP-based rate limit, your API response will include a Retry-After
header indicating how long to wait before re-trying the call. Clients must wait at least Retry-After
seconds before making additional calls to our API, and should employ jitter and backoff strategies to avoid triggering rate limits again.
We have a complete OpenAPI (Swagger) specification for our API.
We auto-generate multiple client libraries based on our OpenAPI specification. To learn more, visit the collection of client libraries on GitHub. You can also use this specification to generate client libraries to interact with our REST API in your language of choice.
Our OpenAPI specification is supported by several API-based tools such as Postman and Insomnia. In many cases, you can directly import our specification to explore our APIs.
Some firewalls and HTTP clients restrict the use of verbs other than GET
and POST
. In those environments, our API endpoints that use DELETE
, PATCH
, and PUT
verbs are inaccessible.
To avoid this issue, our API supports the X-HTTP-Method-Override
header, allowing clients to "tunnel" DELETE
, PATCH
, and PUT
requests using a POST
request.
For example, to call a PATCH
endpoint using a POST
request, you can include X-HTTP-Method-Override:PATCH
as a header.
We sometimes release new API resources in beta status before we release them with general availability.
Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible.
We try to promote resources into general availability as quickly as possible. This happens after sufficient testing and when we're satisfied that we no longer need to make backwards-incompatible changes.
We mark beta resources with a "Beta" callout in our documentation, pictured below:
To use this feature, pass in a header including the
LD-API-Version
key with value set tobeta
. Use this header with each call. To learn more, read Beta resources.Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible.
To use a beta resource, you must include a header in the request. If you call a beta resource without this header, you receive a 403
response.
Use this header:
LD-API-Version: beta
The version of LaunchDarkly that is available on domains controlled by the United States government is different from the version of LaunchDarkly available to the general public. If you are an employee or contractor for a United States federal agency and use LaunchDarkly in your work, you likely use the federal instance of LaunchDarkly.
If you are working in the federal instance of LaunchDarkly, the base URI for each request is https://app.launchdarkly.us
. In the "Try it" sandbox for each request, click the request path to view the complete resource path for the federal environment.
To learn more, read LaunchDarkly in federal environments.
We try hard to keep our REST API backwards compatible, but we occasionally have to make backwards-incompatible changes in the process of shipping new features. These breaking changes can cause unexpected behavior if you don't prepare for them accordingly.
Updates to our REST API include support for the latest features in LaunchDarkly. We also release a new version of our REST API every time we make a breaking change. We provide simultaneous support for multiple API versions so you can migrate from your current API version to a new version at your own pace.
You can set the API version on a specific request by sending an LD-API-Version
header, as shown in the example below:
LD-API-Version: 20240415
The header value is the version number of the API version you would like to request. The number for each version corresponds to the date the version was released in yyyymmdd
format. In the example above the version 20240415
corresponds to April 15, 2024.
When you create an access token, you must specify a specific version of the API to use. This ensures that integrations using this token cannot be broken by version changes.
Tokens created before versioning was released have their version set to 20160426
, which is the version of the API that existed before the current versioning scheme, so that they continue working the same way they did before versioning.
If you would like to upgrade your integration to use a new API version, you can explicitly set the header described above.
We recommend that you set the API version header explicitly in any client or integration you build.
Only rely on the access token API version during manual testing.
<div style="width:75px">Version | Changes | End of life (EOL) |
---|---|---|
20240415 |
|
Current |
20220603 |
|
2025-04-15 |
20210729 |
|
2023-06-03 |
20191212 |
|
2022-07-29 |
20160426 |
|
2020-12-12 |
To learn more about how EOL is determined, read LaunchDarkly's End of Life (EOL) Policy.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2.0
- Package version: 17.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://support.launchdarkly.com
Python >=3.6
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/launchdarkly/api-client-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/launchdarkly/api-client-python.git
)
Then import the package:
import launchdarkly_api
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import launchdarkly_api
Please follow the installation procedure and then run the following:
import time
import launchdarkly_api
from pprint import pprint
from launchdarkly_api.api import access_tokens_api
from launchdarkly_api.model.access_token_post import AccessTokenPost
from launchdarkly_api.model.forbidden_error_rep import ForbiddenErrorRep
from launchdarkly_api.model.invalid_request_error_rep import InvalidRequestErrorRep
from launchdarkly_api.model.json_patch import JSONPatch
from launchdarkly_api.model.not_found_error_rep import NotFoundErrorRep
from launchdarkly_api.model.patch_failed_error_rep import PatchFailedErrorRep
from launchdarkly_api.model.rate_limited_error_rep import RateLimitedErrorRep
from launchdarkly_api.model.status_conflict_error_rep import StatusConflictErrorRep
from launchdarkly_api.model.token import Token
from launchdarkly_api.model.tokens import Tokens
from launchdarkly_api.model.unauthorized_error_rep import UnauthorizedErrorRep
# Defining the host is optional and defaults to https://app.launchdarkly.com
# See configuration.py for a list of all supported configuration parameters.
configuration = launchdarkly_api.Configuration(
host = "https://app.launchdarkly.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with launchdarkly_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = access_tokens_api.AccessTokensApi(api_client)
id = "id_example" # str | The ID of the access token to update
try:
# Delete access token
api_instance.delete_token(id)
except launchdarkly_api.ApiException as e:
print("Exception when calling AccessTokensApi->delete_token: %s\n" % e)
All URIs are relative to https://app.launchdarkly.com
Class | Method | HTTP request | Description |
---|---|---|---|
AccessTokensApi | delete_token | DELETE /api/v2/tokens/{id} | Delete access token |
AccessTokensApi | get_token | GET /api/v2/tokens/{id} | Get access token |
AccessTokensApi | get_tokens | GET /api/v2/tokens | List access tokens |
AccessTokensApi | patch_token | PATCH /api/v2/tokens/{id} | Patch access token |
AccessTokensApi | post_token | POST /api/v2/tokens | Create access token |
AccessTokensApi | reset_token | POST /api/v2/tokens/{id}/reset | Reset access token |
AccountMembersApi | delete_member | DELETE /api/v2/members/{id} | Delete account member |
AccountMembersApi | get_member | GET /api/v2/members/{id} | Get account member |
AccountMembersApi | get_members | GET /api/v2/members | List account members |
AccountMembersApi | patch_member | PATCH /api/v2/members/{id} | Modify an account member |
AccountMembersApi | post_member_teams | POST /api/v2/members/{id}/teams | Add a member to teams |
AccountMembersApi | post_members | POST /api/v2/members | Invite new members |
AccountMembersBetaApi | patch_members | PATCH /api/v2/members | Modify account members |
AccountUsageBetaApi | get_data_export_events_usage | GET /api/v2/usage/data-export-events | Get data export events usage |
AccountUsageBetaApi | get_evaluations_usage | GET /api/v2/usage/evaluations/{projectKey}/{environmentKey}/{featureFlagKey} | Get evaluations usage |
AccountUsageBetaApi | get_events_usage | GET /api/v2/usage/events/{type} | Get events usage |
AccountUsageBetaApi | get_experimentation_keys_usage | GET /api/v2/usage/experimentation-keys | Get experimentation keys usage |
AccountUsageBetaApi | get_experimentation_units_usage | GET /api/v2/usage/experimentation-units | Get experimentation units usage |
AccountUsageBetaApi | get_mau_sdks_by_type | GET /api/v2/usage/mau/sdks | Get MAU SDKs by type |
AccountUsageBetaApi | get_mau_usage | GET /api/v2/usage/mau | Get MAU usage |
AccountUsageBetaApi | get_mau_usage_by_category | GET /api/v2/usage/mau/bycategory | Get MAU usage by category |
AccountUsageBetaApi | get_service_connection_usage | GET /api/v2/usage/service-connections | Get service connection usage |
AccountUsageBetaApi | get_stream_usage | GET /api/v2/usage/streams/{source} | Get stream usage |
AccountUsageBetaApi | get_stream_usage_by_sdk_version | GET /api/v2/usage/streams/{source}/bysdkversion | Get stream usage by SDK version |
AccountUsageBetaApi | get_stream_usage_sdkversion | GET /api/v2/usage/streams/{source}/sdkversions | Get stream usage SDK versions |
ApplicationsBetaApi | delete_application | DELETE /api/v2/applications/{applicationKey} | Delete application |
ApplicationsBetaApi | delete_application_version | DELETE /api/v2/applications/{applicationKey}/versions/{versionKey} | Delete application version |
ApplicationsBetaApi | get_application | GET /api/v2/applications/{applicationKey} | Get application by key |
ApplicationsBetaApi | get_application_versions | GET /api/v2/applications/{applicationKey}/versions | Get application versions by application key |
ApplicationsBetaApi | get_applications | GET /api/v2/applications | Get applications |
ApplicationsBetaApi | patch_application | PATCH /api/v2/applications/{applicationKey} | Update application |
ApplicationsBetaApi | patch_application_version | PATCH /api/v2/applications/{applicationKey}/versions/{versionKey} | Update application version |
ApprovalsApi | delete_approval_request | DELETE /api/v2/approval-requests/{id} | Delete approval request |
ApprovalsApi | delete_approval_request_for_flag | DELETE /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id} | Delete approval request for a flag |
ApprovalsApi | get_approval_for_flag | GET /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id} | Get approval request for a flag |
ApprovalsApi | get_approval_request | GET /api/v2/approval-requests/{id} | Get approval request |
ApprovalsApi | get_approval_requests | GET /api/v2/approval-requests | List approval requests |
ApprovalsApi | get_approvals_for_flag | GET /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests | List approval requests for a flag |
ApprovalsApi | post_approval_request | POST /api/v2/approval-requests | Create approval request |
ApprovalsApi | post_approval_request_apply | POST /api/v2/approval-requests/{id}/apply | Apply approval request |
ApprovalsApi | post_approval_request_apply_for_flag | POST /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}/apply | Apply approval request for a flag |
ApprovalsApi | post_approval_request_for_flag | POST /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests | Create approval request for a flag |
ApprovalsApi | post_approval_request_review | POST /api/v2/approval-requests/{id}/reviews | Review approval request |
ApprovalsApi | post_approval_request_review_for_flag | POST /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id}/reviews | Review approval request for a flag |
ApprovalsApi | post_flag_copy_config_approval_request | POST /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests-flag-copy | Create approval request to copy flag configurations across environments |
ApprovalsBetaApi | patch_approval_request | PATCH /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests/{id} | Update approval request |
AuditLogApi | get_audit_log_entries | GET /api/v2/auditlog | List audit log entries |
AuditLogApi | get_audit_log_entry | GET /api/v2/auditlog/{id} | Get audit log entry |
AuditLogApi | post_audit_log_entries | POST /api/v2/auditlog | Search audit log entries |
CodeReferencesApi | delete_branches | POST /api/v2/code-refs/repositories/{repo}/branch-delete-tasks | Delete branches |
CodeReferencesApi | delete_repository | DELETE /api/v2/code-refs/repositories/{repo} | Delete repository |
CodeReferencesApi | get_branch | GET /api/v2/code-refs/repositories/{repo}/branches/{branch} | Get branch |
CodeReferencesApi | get_branches | GET /api/v2/code-refs/repositories/{repo}/branches | List branches |
CodeReferencesApi | get_extinctions | GET /api/v2/code-refs/extinctions | List extinctions |
CodeReferencesApi | get_repositories | GET /api/v2/code-refs/repositories | List repositories |
CodeReferencesApi | get_repository | GET /api/v2/code-refs/repositories/{repo} | Get repository |
CodeReferencesApi | get_root_statistic | GET /api/v2/code-refs/statistics | Get links to code reference repositories for each project |
CodeReferencesApi | get_statistics | GET /api/v2/code-refs/statistics/{projectKey} | Get code references statistics for flags |
CodeReferencesApi | patch_repository | PATCH /api/v2/code-refs/repositories/{repo} | Update repository |
CodeReferencesApi | post_extinction | POST /api/v2/code-refs/repositories/{repo}/branches/{branch}/extinction-events | Create extinction |
CodeReferencesApi | post_repository | POST /api/v2/code-refs/repositories | Create repository |
CodeReferencesApi | put_branch | PUT /api/v2/code-refs/repositories/{repo}/branches/{branch} | Upsert branch |
ContextSettingsApi | put_context_flag_setting | PUT /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{contextKind}/{contextKey}/flags/{featureFlagKey} | Update flag settings for context |
ContextsApi | delete_context_instances | DELETE /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/{id} | Delete context instances |
ContextsApi | evaluate_context_instance | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/flags/evaluate | Evaluate flags for context instance |
ContextsApi | get_context_attribute_names | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes | Get context attribute names |
ContextsApi | get_context_attribute_values | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes/{attributeName} | Get context attribute values |
ContextsApi | get_context_instances | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/{id} | Get context instances |
ContextsApi | get_context_kinds_by_project_key | GET /api/v2/projects/{projectKey}/context-kinds | Get context kinds |
ContextsApi | get_contexts | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/{kind}/{key} | Get contexts |
ContextsApi | put_context_kind | PUT /api/v2/projects/{projectKey}/context-kinds/{key} | Create or update context kind |
ContextsApi | search_context_instances | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/context-instances/search | Search for context instances |
ContextsApi | search_contexts | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/contexts/search | Search for contexts |
CustomRolesApi | delete_custom_role | DELETE /api/v2/roles/{customRoleKey} | Delete custom role |
CustomRolesApi | get_custom_role | GET /api/v2/roles/{customRoleKey} | Get custom role |
CustomRolesApi | get_custom_roles | GET /api/v2/roles | List custom roles |
CustomRolesApi | patch_custom_role | PATCH /api/v2/roles/{customRoleKey} | Update custom role |
CustomRolesApi | post_custom_role | POST /api/v2/roles | Create custom role |
DataExportDestinationsApi | delete_destination | DELETE /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Delete Data Export destination |
DataExportDestinationsApi | get_destination | GET /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Get destination |
DataExportDestinationsApi | get_destinations | GET /api/v2/destinations | List destinations |
DataExportDestinationsApi | patch_destination | PATCH /api/v2/destinations/{projectKey}/{environmentKey}/{id} | Update Data Export destination |
DataExportDestinationsApi | post_destination | POST /api/v2/destinations/{projectKey}/{environmentKey} | Create Data Export destination |
EnvironmentsApi | delete_environment | DELETE /api/v2/projects/{projectKey}/environments/{environmentKey} | Delete environment |
EnvironmentsApi | get_environment | GET /api/v2/projects/{projectKey}/environments/{environmentKey} | Get environment |
EnvironmentsApi | get_environments_by_project | GET /api/v2/projects/{projectKey}/environments | List environments |
EnvironmentsApi | patch_environment | PATCH /api/v2/projects/{projectKey}/environments/{environmentKey} | Update environment |
EnvironmentsApi | post_environment | POST /api/v2/projects/{projectKey}/environments | Create environment |
EnvironmentsApi | reset_environment_mobile_key | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/mobileKey | Reset environment mobile SDK key |
EnvironmentsApi | reset_environment_sdk_key | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/apiKey | Reset environment SDK key |
ExperimentsApi | create_experiment | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments | Create experiment |
ExperimentsApi | create_iteration | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/iterations | Create iteration |
ExperimentsApi | get_experiment | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey} | Get experiment |
ExperimentsApi | get_experiment_results | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/metrics/{metricKey}/results | Get experiment results |
ExperimentsApi | get_experiment_results_for_metric_group | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/metric-groups/{metricGroupKey}/results | Get experiment results for metric group |
ExperimentsApi | get_experimentation_settings | GET /api/v2/projects/{projectKey}/experimentation-settings | Get experimentation settings |
ExperimentsApi | get_experiments | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments | Get experiments |
ExperimentsApi | get_legacy_experiment_results | GET /api/v2/flags/{projectKey}/{featureFlagKey}/experiments/{environmentKey}/{metricKey} | Get legacy experiment results (deprecated) |
ExperimentsApi | patch_experiment | PATCH /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey} | Patch experiment |
ExperimentsApi | put_experimentation_settings | PUT /api/v2/projects/{projectKey}/experimentation-settings | Update experimentation settings |
FeatureFlagsApi | copy_feature_flag | POST /api/v2/flags/{projectKey}/{featureFlagKey}/copy | Copy feature flag |
FeatureFlagsApi | delete_feature_flag | DELETE /api/v2/flags/{projectKey}/{featureFlagKey} | Delete feature flag |
FeatureFlagsApi | get_expiring_context_targets | GET /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-targets/{environmentKey} | Get expiring context targets for feature flag |
FeatureFlagsApi | get_expiring_user_targets | GET /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey} | Get expiring user targets for feature flag |
FeatureFlagsApi | get_feature_flag | GET /api/v2/flags/{projectKey}/{featureFlagKey} | Get feature flag |
FeatureFlagsApi | get_feature_flag_status | GET /api/v2/flag-statuses/{projectKey}/{environmentKey}/{featureFlagKey} | Get feature flag status |
FeatureFlagsApi | get_feature_flag_status_across_environments | GET /api/v2/flag-status/{projectKey}/{featureFlagKey} | Get flag status across environments |
FeatureFlagsApi | get_feature_flag_statuses | GET /api/v2/flag-statuses/{projectKey}/{environmentKey} | List feature flag statuses |
FeatureFlagsApi | get_feature_flags | GET /api/v2/flags/{projectKey} | List feature flags |
FeatureFlagsApi | patch_expiring_targets | PATCH /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-targets/{environmentKey} | Update expiring context targets on feature flag |
FeatureFlagsApi | patch_expiring_user_targets | PATCH /api/v2/flags/{projectKey}/{featureFlagKey}/expiring-user-targets/{environmentKey} | Update expiring user targets on feature flag |
FeatureFlagsApi | patch_feature_flag | PATCH /api/v2/flags/{projectKey}/{featureFlagKey} | Update feature flag |
FeatureFlagsApi | post_feature_flag | POST /api/v2/flags/{projectKey} | Create a feature flag |
FeatureFlagsApi | post_migration_safety_issues | POST /api/v2/projects/{projectKey}/flags/{flagKey}/environments/{environmentKey}/migration-safety-issues | Get migration safety issues |
FeatureFlagsBetaApi | get_dependent_flags | GET /api/v2/flags/{projectKey}/{featureFlagKey}/dependent-flags | List dependent feature flags |
FeatureFlagsBetaApi | get_dependent_flags_by_env | GET /api/v2/flags/{projectKey}/{environmentKey}/{featureFlagKey}/dependent-flags | List dependent feature flags by environment |
FlagLinksBetaApi | create_flag_link | POST /api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey} | Create flag link |
FlagLinksBetaApi | delete_flag_link | DELETE /api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}/{id} | Delete flag link |
FlagLinksBetaApi | get_flag_links | GET /api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey} | List flag links |
FlagLinksBetaApi | update_flag_link | PATCH /api/v2/flag-links/projects/{projectKey}/flags/{featureFlagKey}/{id} | Update flag link |
FlagTriggersApi | create_trigger_workflow | POST /api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey} | Create flag trigger |
FlagTriggersApi | delete_trigger_workflow | DELETE /api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}/{id} | Delete flag trigger |
FlagTriggersApi | get_trigger_workflow_by_id | GET /api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}/{id} | Get flag trigger by ID |
FlagTriggersApi | get_trigger_workflows | GET /api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey} | List flag triggers |
FlagTriggersApi | patch_trigger_workflow | PATCH /api/v2/flags/{projectKey}/{featureFlagKey}/triggers/{environmentKey}/{id} | Update flag trigger |
FollowFlagsApi | delete_flag_follower | DELETE /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/followers/{memberId} | Remove a member as a follower of a flag in a project and environment |
FollowFlagsApi | get_flag_followers | GET /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/followers | Get followers of a flag in a project and environment |
FollowFlagsApi | get_followers_by_proj_env | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/followers | Get followers of all flags in a given project and environment |
FollowFlagsApi | put_flag_follower | PUT /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/followers/{memberId} | Add a member as a follower of a flag in a project and environment |
HoldoutsBetaApi | get_all_holdouts | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts | Get all holdouts |
HoldoutsBetaApi | get_holdout | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts/{holdoutKey} | Get holdout |
HoldoutsBetaApi | get_holdout_by_id | GET /api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts/id/{holdoutId} | Get Holdout by Id |
HoldoutsBetaApi | patch_holdout | PATCH /api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts/{holdoutKey} | Patch holdout |
HoldoutsBetaApi | post_holdout | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/holdouts | Create holdout |
InsightsChartsBetaApi | get_deployment_frequency_chart | GET /api/v2/engineering-insights/charts/deployments/frequency | Get deployment frequency chart data |
InsightsChartsBetaApi | get_flag_status_chart | GET /api/v2/engineering-insights/charts/flags/status | Get flag status chart data |
InsightsChartsBetaApi | get_lead_time_chart | GET /api/v2/engineering-insights/charts/lead-time | Get lead time chart data |
InsightsChartsBetaApi | get_release_frequency_chart | GET /api/v2/engineering-insights/charts/releases/frequency | Get release frequency chart data |
InsightsChartsBetaApi | get_stale_flags_chart | GET /api/v2/engineering-insights/charts/flags/stale | Get stale flags chart data |
InsightsDeploymentsBetaApi | create_deployment_event | POST /api/v2/engineering-insights/deployment-events | Create deployment event |
InsightsDeploymentsBetaApi | get_deployment | GET /api/v2/engineering-insights/deployments/{deploymentID} | Get deployment |
InsightsDeploymentsBetaApi | get_deployments | GET /api/v2/engineering-insights/deployments | List deployments |
InsightsDeploymentsBetaApi | update_deployment | PATCH /api/v2/engineering-insights/deployments/{deploymentID} | Update deployment |
InsightsFlagEventsBetaApi | get_flag_events | GET /api/v2/engineering-insights/flag-events | List flag events |
InsightsPullRequestsBetaApi | get_pull_requests | GET /api/v2/engineering-insights/pull-requests | List pull requests |
InsightsRepositoriesBetaApi | associate_repositories_and_projects | PUT /api/v2/engineering-insights/repositories/projects | Associate repositories with projects |
InsightsRepositoriesBetaApi | delete_repository_project | DELETE /api/v2/engineering-insights/repositories/{repositoryKey}/projects/{projectKey} | Remove repository project association |
InsightsRepositoriesBetaApi | get_insights_repositories | GET /api/v2/engineering-insights/repositories | List repositories |
InsightsScoresBetaApi | create_insight_group | POST /api/v2/engineering-insights/insights/group | Create insight group |
InsightsScoresBetaApi | delete_insight_group | DELETE /api/v2/engineering-insights/insights/groups/{insightGroupKey} | Delete insight group |
InsightsScoresBetaApi | get_insight_group | GET /api/v2/engineering-insights/insights/groups/{insightGroupKey} | Get insight group |
InsightsScoresBetaApi | get_insight_groups | GET /api/v2/engineering-insights/insights/groups | List insight groups |
InsightsScoresBetaApi | get_insights_scores | GET /api/v2/engineering-insights/insights/scores | Get insight scores |
InsightsScoresBetaApi | patch_insight_group | PATCH /api/v2/engineering-insights/insights/groups/{insightGroupKey} | Patch insight group |
IntegrationAuditLogSubscriptionsApi | create_subscription | POST /api/v2/integrations/{integrationKey} | Create audit log subscription |
IntegrationAuditLogSubscriptionsApi | delete_subscription | DELETE /api/v2/integrations/{integrationKey}/{id} | Delete audit log subscription |
IntegrationAuditLogSubscriptionsApi | get_subscription_by_id | GET /api/v2/integrations/{integrationKey}/{id} | Get audit log subscription by ID |
IntegrationAuditLogSubscriptionsApi | get_subscriptions | GET /api/v2/integrations/{integrationKey} | Get audit log subscriptions by integration |
IntegrationAuditLogSubscriptionsApi | update_subscription | PATCH /api/v2/integrations/{integrationKey}/{id} | Update audit log subscription |
IntegrationDeliveryConfigurationsBetaApi | create_integration_delivery_configuration | POST /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey} | Create delivery configuration |
IntegrationDeliveryConfigurationsBetaApi | delete_integration_delivery_configuration | DELETE /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id} | Delete delivery configuration |
IntegrationDeliveryConfigurationsBetaApi | get_integration_delivery_configuration_by_environment | GET /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey} | Get delivery configurations by environment |
IntegrationDeliveryConfigurationsBetaApi | get_integration_delivery_configuration_by_id | GET /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id} | Get delivery configuration by ID |
IntegrationDeliveryConfigurationsBetaApi | get_integration_delivery_configurations | GET /api/v2/integration-capabilities/featureStore | List all delivery configurations |
IntegrationDeliveryConfigurationsBetaApi | patch_integration_delivery_configuration | PATCH /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id} | Update delivery configuration |
IntegrationDeliveryConfigurationsBetaApi | validate_integration_delivery_configuration | POST /api/v2/integration-capabilities/featureStore/{projectKey}/{environmentKey}/{integrationKey}/{id}/validate | Validate delivery configuration |
IntegrationsBetaApi | create_big_segment_store_integration | POST /api/v2/integration-capabilities/big-segment-store/{projectKey}/{environmentKey}/{integrationKey} | Create big segment store integration |
IntegrationsBetaApi | create_flag_import_configuration | POST /api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey} | Create a flag import configuration |
IntegrationsBetaApi | delete_big_segment_store_integration | DELETE /api/v2/integration-capabilities/big-segment-store/{projectKey}/{environmentKey}/{integrationKey}/{integrationId} | Delete big segment store integration |
IntegrationsBetaApi | delete_flag_import_configuration | DELETE /api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId} | Delete a flag import configuration |
IntegrationsBetaApi | get_big_segment_store_integration | GET /api/v2/integration-capabilities/big-segment-store/{projectKey}/{environmentKey}/{integrationKey}/{integrationId} | Get big segment store integration by ID |
IntegrationsBetaApi | get_big_segment_store_integrations | GET /api/v2/integration-capabilities/big-segment-store | List all big segment store integrations |
IntegrationsBetaApi | get_flag_import_configuration | GET /api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId} | Get a single flag import configuration |
IntegrationsBetaApi | get_flag_import_configurations | GET /api/v2/integration-capabilities/flag-import | List all flag import configurations |
IntegrationsBetaApi | patch_big_segment_store_integration | PATCH /api/v2/integration-capabilities/big-segment-store/{projectKey}/{environmentKey}/{integrationKey}/{integrationId} | Update big segment store integration |
IntegrationsBetaApi | patch_flag_import_configuration | PATCH /api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId} | Update a flag import configuration |
IntegrationsBetaApi | trigger_flag_import_job | POST /api/v2/integration-capabilities/flag-import/{projectKey}/{integrationKey}/{integrationId}/trigger | Trigger a single flag import run |
LayersBetaApi | create_layer | POST /api/v2/projects/{projectKey}/layers | Create layer |
LayersBetaApi | get_layers | GET /api/v2/projects/{projectKey}/layers | Get layers |
LayersBetaApi | update_layer | PATCH /api/v2/projects/{projectKey}/layers/{layerKey} | Update layer |
MetricsApi | delete_metric | DELETE /api/v2/metrics/{projectKey}/{metricKey} | Delete metric |
MetricsApi | get_metric | GET /api/v2/metrics/{projectKey}/{metricKey} | Get metric |
MetricsApi | get_metrics | GET /api/v2/metrics/{projectKey} | List metrics |
MetricsApi | patch_metric | PATCH /api/v2/metrics/{projectKey}/{metricKey} | Update metric |
MetricsApi | post_metric | POST /api/v2/metrics/{projectKey} | Create metric |
MetricsBetaApi | create_metric_group | POST /api/v2/projects/{projectKey}/metric-groups | Create metric group |
MetricsBetaApi | delete_metric_group | DELETE /api/v2/projects/{projectKey}/metric-groups/{metricGroupKey} | Delete metric group |
MetricsBetaApi | get_metric_group | GET /api/v2/projects/{projectKey}/metric-groups/{metricGroupKey} | Get metric group |
MetricsBetaApi | get_metric_groups | GET /api/v2/projects/{projectKey}/metric-groups | List metric groups |
MetricsBetaApi | patch_metric_group | PATCH /api/v2/projects/{projectKey}/metric-groups/{metricGroupKey} | Patch metric group |
OAuth2ClientsApi | create_o_auth2_client | POST /api/v2/oauth/clients | Create a LaunchDarkly OAuth 2.0 client |
OAuth2ClientsApi | delete_o_auth_client | DELETE /api/v2/oauth/clients/{clientId} | Delete OAuth 2.0 client |
OAuth2ClientsApi | get_o_auth_client_by_id | GET /api/v2/oauth/clients/{clientId} | Get client by ID |
OAuth2ClientsApi | get_o_auth_clients | GET /api/v2/oauth/clients | Get clients |
OAuth2ClientsApi | patch_o_auth_client | PATCH /api/v2/oauth/clients/{clientId} | Patch client by ID |
OtherApi | get_caller_identity | GET /api/v2/caller-identity | Identify the caller |
OtherApi | get_ips | GET /api/v2/public-ip-list | Gets the public IP list |
OtherApi | get_openapi_spec | GET /api/v2/openapi.json | Gets the OpenAPI spec in json |
OtherApi | get_root | GET /api/v2 | Root resource |
OtherApi | get_versions | GET /api/v2/versions | Get version information |
ProjectsApi | delete_project | DELETE /api/v2/projects/{projectKey} | Delete project |
ProjectsApi | get_flag_defaults_by_project | GET /api/v2/projects/{projectKey}/flag-defaults | Get flag defaults for project |
ProjectsApi | get_project | GET /api/v2/projects/{projectKey} | Get project |
ProjectsApi | get_projects | GET /api/v2/projects | List projects |
ProjectsApi | patch_flag_defaults_by_project | PATCH /api/v2/projects/{projectKey}/flag-defaults | Update flag default for project |
ProjectsApi | patch_project | PATCH /api/v2/projects/{projectKey} | Update project |
ProjectsApi | post_project | POST /api/v2/projects | Create project |
ProjectsApi | put_flag_defaults_by_project | PUT /api/v2/projects/{projectKey}/flag-defaults | Create or update flag defaults for project |
RelayProxyConfigurationsApi | delete_relay_auto_config | DELETE /api/v2/account/relay-auto-configs/{id} | Delete Relay Proxy config by ID |
RelayProxyConfigurationsApi | get_relay_proxy_config | GET /api/v2/account/relay-auto-configs/{id} | Get Relay Proxy config |
RelayProxyConfigurationsApi | get_relay_proxy_configs | GET /api/v2/account/relay-auto-configs | List Relay Proxy configs |
RelayProxyConfigurationsApi | patch_relay_auto_config | PATCH /api/v2/account/relay-auto-configs/{id} | Update a Relay Proxy config |
RelayProxyConfigurationsApi | post_relay_auto_config | POST /api/v2/account/relay-auto-configs | Create a new Relay Proxy config |
RelayProxyConfigurationsApi | reset_relay_auto_config | POST /api/v2/account/relay-auto-configs/{id}/reset | Reset Relay Proxy configuration key |
ReleasePipelinesBetaApi | delete_release_pipeline | DELETE /api/v2/projects/{projectKey}/release-pipelines/{pipelineKey} | Delete release pipeline |
ReleasePipelinesBetaApi | get_all_release_pipelines | GET /api/v2/projects/{projectKey}/release-pipelines | Get all release pipelines |
ReleasePipelinesBetaApi | get_all_release_progressions_for_release_pipeline | GET /api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}/releases | Get release progressions for release pipeline |
ReleasePipelinesBetaApi | get_release_pipeline_by_key | GET /api/v2/projects/{projectKey}/release-pipelines/{pipelineKey} | Get release pipeline by key |
ReleasePipelinesBetaApi | patch_release_pipeline | PATCH /api/v2/projects/{projectKey}/release-pipelines/{pipelineKey} | Update a release pipeline |
ReleasePipelinesBetaApi | post_release_pipeline | POST /api/v2/projects/{projectKey}/release-pipelines | Create a release pipeline |
ReleasesBetaApi | create_release_for_flag | PUT /api/v2/projects/{projectKey}/flags/{flagKey}/release | Create a new release for flag |
ReleasesBetaApi | delete_release_by_flag_key | DELETE /api/v2/flags/{projectKey}/{flagKey}/release | Delete a release for flag |
ReleasesBetaApi | get_release_by_flag_key | GET /api/v2/flags/{projectKey}/{flagKey}/release | Get release for flag |
ReleasesBetaApi | patch_release_by_flag_key | PATCH /api/v2/flags/{projectKey}/{flagKey}/release | Patch release for flag |
ReleasesBetaApi | update_phase_status | PUT /api/v2/projects/{projectKey}/flags/{flagKey}/release/phases/{phaseId} | Update phase status for release |
ScheduledChangesApi | delete_flag_config_scheduled_changes | DELETE /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id} | Delete scheduled changes workflow |
ScheduledChangesApi | get_feature_flag_scheduled_change | GET /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id} | Get a scheduled change |
ScheduledChangesApi | get_flag_config_scheduled_changes | GET /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes | List scheduled changes |
ScheduledChangesApi | patch_flag_config_scheduled_change | PATCH /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id} | Update scheduled changes workflow |
ScheduledChangesApi | post_flag_config_scheduled_changes | POST /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes | Create scheduled changes workflow |
SegmentsApi | delete_segment | DELETE /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey} | Delete segment |
SegmentsApi | get_context_instance_segments_membership_by_env | POST /api/v2/projects/{projectKey}/environments/{environmentKey}/segments/evaluate | List segment memberships for context instance |
SegmentsApi | get_expiring_targets_for_segment | GET /api/v2/segments/{projectKey}/{segmentKey}/expiring-targets/{environmentKey} | Get expiring targets for segment |
SegmentsApi | get_expiring_user_targets_for_segment | GET /api/v2/segments/{projectKey}/{segmentKey}/expiring-user-targets/{environmentKey} | Get expiring user targets for segment |
SegmentsApi | get_segment | GET /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey} | Get segment |
SegmentsApi | get_segment_membership_for_context | GET /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/contexts/{contextKey} | Get big segment membership for context |
SegmentsApi | get_segment_membership_for_user | GET /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/users/{userKey} | Get big segment membership for user |
SegmentsApi | get_segments | GET /api/v2/segments/{projectKey}/{environmentKey} | List segments |
SegmentsApi | patch_expiring_targets_for_segment | PATCH /api/v2/segments/{projectKey}/{segmentKey}/expiring-targets/{environmentKey} | Update expiring targets for segment |
SegmentsApi | patch_expiring_user_targets_for_segment | PATCH /api/v2/segments/{projectKey}/{segmentKey}/expiring-user-targets/{environmentKey} | Update expiring user targets for segment |
SegmentsApi | patch_segment | PATCH /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey} | Patch segment |
SegmentsApi | post_segment | POST /api/v2/segments/{projectKey}/{environmentKey} | Create segment |
SegmentsApi | update_big_segment_context_targets | POST /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/contexts | Update context targets on a big segment |
SegmentsApi | update_big_segment_targets | POST /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/users | Update user context targets on a big segment |
SegmentsBetaApi | create_big_segment_export | POST /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/exports | Create big segment export |
SegmentsBetaApi | create_big_segment_import | POST /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports | Create big segment import |
SegmentsBetaApi | get_big_segment_export | GET /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/exports/{exportID} | Get big segment export |
SegmentsBetaApi | get_big_segment_import | GET /api/v2/segments/{projectKey}/{environmentKey}/{segmentKey}/imports/{importID} | Get big segment import |
TagsApi | get_tags | GET /api/v2/tags | List tags |
TeamsApi | delete_team | DELETE /api/v2/teams/{teamKey} | Delete team |
TeamsApi | get_team | GET /api/v2/teams/{teamKey} | Get team |
TeamsApi | get_team_maintainers | GET /api/v2/teams/{teamKey}/maintainers | Get team maintainers |
TeamsApi | get_team_roles | GET /api/v2/teams/{teamKey}/roles | Get team custom roles |
TeamsApi | get_teams | GET /api/v2/teams | List teams |
TeamsApi | patch_team | PATCH /api/v2/teams/{teamKey} | Update team |
TeamsApi | post_team | POST /api/v2/teams | Create team |
TeamsApi | post_team_members | POST /api/v2/teams/{teamKey}/members | Add multiple members to team |
TeamsBetaApi | patch_teams | PATCH /api/v2/teams | Update teams |
UserSettingsApi | get_expiring_flags_for_user | GET /api/v2/users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey} | Get expiring dates on flags for user |
UserSettingsApi | get_user_flag_setting | GET /api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey} | Get flag setting for user |
UserSettingsApi | get_user_flag_settings | GET /api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags | List flag settings for user |
UserSettingsApi | patch_expiring_flags_for_user | PATCH /api/v2/users/{projectKey}/{userKey}/expiring-user-targets/{environmentKey} | Update expiring user target for flags |
UserSettingsApi | put_flag_setting | PUT /api/v2/users/{projectKey}/{environmentKey}/{userKey}/flags/{featureFlagKey} | Update flag settings for user |
UsersApi | delete_user | DELETE /api/v2/users/{projectKey}/{environmentKey}/{userKey} | Delete user |
UsersApi | get_search_users | GET /api/v2/user-search/{projectKey}/{environmentKey} | Find users |
UsersApi | get_user | GET /api/v2/users/{projectKey}/{environmentKey}/{userKey} | Get user |
UsersApi | get_users | GET /api/v2/users/{projectKey}/{environmentKey} | List users |
UsersBetaApi | get_user_attribute_names | GET /api/v2/user-attributes/{projectKey}/{environmentKey} | Get user attribute names |
WebhooksApi | delete_webhook | DELETE /api/v2/webhooks/{id} | Delete webhook |
WebhooksApi | get_all_webhooks | GET /api/v2/webhooks | List webhooks |
WebhooksApi | get_webhook | GET /api/v2/webhooks/{id} | Get webhook |
WebhooksApi | patch_webhook | PATCH /api/v2/webhooks/{id} | Update webhook |
WebhooksApi | post_webhook | POST /api/v2/webhooks | Creates a webhook |
WorkflowTemplatesApi | create_workflow_template | POST /api/v2/templates | Create workflow template |
WorkflowTemplatesApi | delete_workflow_template | DELETE /api/v2/templates/{templateKey} | Delete workflow template |
WorkflowTemplatesApi | get_workflow_templates | GET /api/v2/templates | Get workflow templates |
WorkflowsApi | delete_workflow | DELETE /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows/{workflowId} | Delete workflow |
WorkflowsApi | get_custom_workflow | GET /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows/{workflowId} | Get custom workflow |
WorkflowsApi | get_workflows | GET /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows | Get workflows |
WorkflowsApi | post_workflow | POST /api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/workflows | Create workflow |
- Access
- AccessAllowedReason
- AccessAllowedRep
- AccessDenied
- AccessDeniedReason
- AccessTokenPost
- ActionInput
- ActionOutput
- AllVariationsSummary
- ApplicationCollectionRep
- ApplicationFlagCollectionRep
- ApplicationRep
- ApplicationVersionRep
- ApplicationVersionsCollectionRep
- ApprovalRequestResponse
- ApprovalSettings
- Audience
- AudienceConfiguration
- AudiencePost
- Audiences
- AuditLogEntryListingRep
- AuditLogEntryListingRepCollection
- AuditLogEntryRep
- AuthorizedAppDataRep
- BayesianBetaBinomialStatsRep
- BayesianNormalStatsRep
- BigSegmentStoreIntegration
- BigSegmentStoreIntegrationCollection
- BigSegmentStoreIntegrationCollectionLinks
- BigSegmentStoreIntegrationLinks
- BigSegmentStoreStatus
- BigSegmentTarget
- BooleanDefaults
- BooleanFlagDefaults
- BranchCollectionRep
- BranchRep
- BulkEditMembersRep
- BulkEditTeamsRep
- CallerIdentityRep
- Clause
- Client
- ClientCollection
- ClientSideAvailability
- ClientSideAvailabilityPost
- CompletedBy
- ConditionInput
- ConditionOutput
- ConfidenceIntervalRep
- Conflict
- ConflictOutput
- ContextAttributeName
- ContextAttributeNames
- ContextAttributeNamesCollection
- ContextAttributeValue
- ContextAttributeValues
- ContextAttributeValuesCollection
- ContextInstance
- ContextInstanceEvaluation
- ContextInstanceEvaluationReason
- ContextInstanceEvaluations
- ContextInstanceRecord
- ContextInstanceSearch
- ContextInstanceSegmentMembership
- ContextInstanceSegmentMemberships
- ContextInstances
- ContextKindRep
- ContextKindsCollectionRep
- ContextRecord
- ContextSearch
- Contexts
- CopiedFromEnv
- CreateApprovalRequestRequest
- CreateCopyFlagConfigApprovalRequestRequest
- CreateFlagConfigApprovalRequestRequest
- CreatePhaseInput
- CreateReleaseInput
- CreateReleasePipelineInput
- CreateWorkflowTemplateInput
- CredibleIntervalRep
- CustomProperties
- CustomProperty
- CustomRole
- CustomRolePost
- CustomRoles
- CustomWorkflowInput
- CustomWorkflowMeta
- CustomWorkflowOutput
- CustomWorkflowStageMeta
- CustomWorkflowsListingOutput
- DefaultClientSideAvailability
- DefaultClientSideAvailabilityPost
- Defaults
- DependentExperimentListRep
- DependentExperimentRep
- DependentFlag
- DependentFlagEnvironment
- DependentFlagsByEnvironment
- DependentMetricGroupRep
- DependentMetricGroupRepWithMetrics
- DependentMetricOrMetricGroupRep
- DeploymentCollectionRep
- DeploymentRep
- Destination
- DestinationPost
- Destinations
- Distribution
- Environment
- EnvironmentPost
- EnvironmentSummary
- Environments
- Error
- EvaluationReason
- EvaluationsSummary
- ExecutionOutput
- ExpandableApprovalRequestResponse
- ExpandableApprovalRequestsResponse
- ExpandedFlagRep
- Experiment
- ExperimentAllocationRep
- ExperimentBayesianResultsRep
- ExperimentCollectionRep
- ExperimentEnabledPeriodRep
- ExperimentEnvironmentSettingRep
- ExperimentInfoRep
- ExperimentMetadataRep
- ExperimentPatchInput
- ExperimentPost
- ExperimentResults
- ExperimentStatsRep
- ExperimentTimeSeriesSlice
- ExperimentTimeSeriesVariationSlice
- ExperimentTimeSeriesVariationSlices
- ExperimentTotalsRep
- ExpiringTarget
- ExpiringTargetError
- ExpiringTargetGetResponse
- ExpiringTargetPatchResponse
- ExpiringUserTargetGetResponse
- ExpiringUserTargetItem
- ExpiringUserTargetPatchResponse
- Export
- Extinction
- ExtinctionCollectionRep
- ExtinctionListPost
- FailureReasonRep
- FeatureFlag
- FeatureFlagBody
- FeatureFlagConfig
- FeatureFlagScheduledChange
- FeatureFlagScheduledChanges
- FeatureFlagStatus
- FeatureFlagStatusAcrossEnvironments
- FeatureFlagStatuses
- FeatureFlags
- FileRep
- FlagConfigApprovalRequestResponse
- FlagConfigApprovalRequestsResponse
- FlagConfigEvaluation
- FlagConfigMigrationSettingsRep
- FlagCopyConfigEnvironment
- FlagCopyConfigPost
- FlagDefaultsRep
- FlagEventCollectionRep
- FlagEventExperiment
- FlagEventExperimentCollection
- FlagEventExperimentIteration
- FlagEventImpactRep
- FlagEventMemberRep
- FlagEventRep
- FlagFollowersByProjEnvGetRep
- FlagFollowersGetRep
- FlagImportConfigurationPost
- FlagImportIntegration
- FlagImportIntegrationCollection
- FlagImportIntegrationCollectionLinks
- FlagImportIntegrationLinks
- FlagImportStatus
- FlagInput
- FlagLinkCollectionRep
- FlagLinkMember
- FlagLinkPost
- FlagLinkRep
- FlagListingRep
- FlagMigrationSettingsRep
- FlagPrerequisitePost
- FlagReferenceCollectionRep
- FlagReferenceRep
- FlagRep
- FlagScheduledChangesInput
- FlagSempatch
- FlagStatusRep
- FlagSummary
- FlagTriggerInput
- FlagsInput
- FollowFlagMember
- FollowersPerFlag
- ForbiddenErrorRep
- FormVariableConfig
- HoldoutDetailRep
- HoldoutPatchInput
- HoldoutPostRequest
- HoldoutRep
- HoldoutsCollectionRep
- HunkRep
- InitiatorRep
- InsightGroup
- InsightGroupCollection
- InsightGroupCollectionMetadata
- InsightGroupCollectionScoreMetadata
- InsightGroupScores
- InsightGroupsCountByIndicator
- InsightPeriod
- InsightScores
- InsightsChart
- InsightsChartBounds
- InsightsChartMetadata
- InsightsChartMetadataCustomValues
- InsightsChartMetric
- InsightsChartMetrics
- InsightsChartSeries
- InsightsChartSeriesDataPoint
- InsightsChartSeriesMetadata
- InsightsChartSeriesMetadataAxis
- InsightsMetricIndicatorRange
- InsightsMetricScore
- InsightsMetricTierDefinition
- InsightsRepository
- InsightsRepositoryCollection
- InsightsRepositoryProject
- InsightsRepositoryProjectCollection
- InsightsRepositoryProjectMappings
- Instruction
- InstructionUserRequest
- Instructions
- Integration
- IntegrationDeliveryConfiguration
- IntegrationDeliveryConfigurationCollection
- IntegrationDeliveryConfigurationCollectionLinks
- IntegrationDeliveryConfigurationLinks
- IntegrationDeliveryConfigurationPost
- IntegrationDeliveryConfigurationResponse
- IntegrationMetadata
- IntegrationStatus
- IntegrationStatusRep
- IntegrationSubscriptionStatusRep
- Integrations
- InvalidRequestErrorRep
- IpList
- IterationInput
- IterationRep
- JSONPatch
- LastSeenMetadata
- LayerCollectionRep
- LayerConfigurationRep
- LayerPatchInput
- LayerPost
- LayerRep
- LayerReservationRep
- LayerSnapshotRep
- LeadTimeStagesRep
- LegacyExperimentRep
- Link
- MaintainerRep
- MaintainerTeam
- Member
- MemberDataRep
- MemberImportItem
- MemberPermissionGrantSummaryRep
- MemberSummary
- MemberTeamSummaryRep
- MemberTeamsPostInput
- Members
- MembersPatchInput
- MethodNotAllowedErrorRep
- MetricCollectionRep
- MetricEventDefaultRep
- MetricGroupCollectionRep
- MetricGroupPost
- MetricGroupRep
- MetricGroupResultsRep
- MetricInGroupRep
- MetricInGroupResultsRep
- MetricInMetricGroupInput
- MetricInput
- MetricListingRep
- MetricPost
- MetricRep
- MetricSeen
- MetricV2Rep
- MetricsInput
- MigrationSafetyIssueRep
- MigrationSettingsPost
- ModelImport
- Modification
- MultiEnvironmentDependentFlag
- MultiEnvironmentDependentFlags
- NamingConvention
- NewMemberForm
- NewMemberFormListPost
- NotFoundErrorRep
- OauthClientPost
- Object
- ParameterDefault
- ParameterRep
- ParentResourceRep
- PatchFailedErrorRep
- PatchFlagsRequest
- PatchOperation
- PatchSegmentExpiringTargetInputRep
- PatchSegmentExpiringTargetInstruction
- PatchSegmentInstruction
- PatchSegmentRequest
- PatchUsersRequest
- PatchWithComment
- PermissionGrantInput
- Phase
- PhaseConfiguration
- PhaseInfo
- PostApprovalRequestApplyRequest
- PostApprovalRequestReviewRequest
- PostDeploymentEventInput
- PostFlagScheduledChangesInput
- PostInsightGroupParams
- Prerequisite
- Project
- ProjectPost
- ProjectRep
- ProjectSummary
- ProjectSummaryCollection
- Projects
- PullRequestCollectionRep
- PullRequestLeadTimeRep
- PullRequestRep
- PutBranch
- RandomizationSettingsPut
- RandomizationSettingsRep
- RandomizationUnitInput
- RandomizationUnitRep
- RateLimitedErrorRep
- RecentTriggerBody
- ReferenceRep
- RelatedExperimentRep
- RelativeDifferenceRep
- RelayAutoConfigCollectionRep
- RelayAutoConfigPost
- RelayAutoConfigRep
- Release
- ReleaseAudience
- ReleaseGuardianConfiguration
- ReleaseGuardianConfigurationInput
- ReleasePhase
- ReleasePipeline
- ReleasePipelineCollection
- ReleaseProgression
- ReleaseProgressionCollection
- ReleaserAudienceConfigInput
- RepositoryCollectionRep
- RepositoryPost
- RepositoryRep
- ResourceAccess
- ResourceIDResponse
- ResourceId
- ReviewOutput
- ReviewResponse
- RoleAttributeMap
- RoleAttributeValues
- Rollout
- RootResponse
- Rule
- RuleClause
- SdkListRep
- SdkVersionListRep
- SdkVersionRep
- SegmentBody
- SegmentMetadata
- SegmentTarget
- SegmentUserList
- SegmentUserState
- Series
- SeriesIntervalsRep
- SeriesListRep
- SeriesMetadataRep
- SeriesTimeSliceRep
- SimpleHoldoutRep
- SlicedResultsRep
- SourceEnv
- SourceFlag
- StageInput
- StageOutput
- Statement
- StatementPost
- StatementPostList
- StatisticCollectionRep
- StatisticRep
- StatisticsRoot
- StatusConflictErrorRep
- StatusResponse
- StatusServiceUnavailable
- StoreIntegrationError
- SubjectDataRep
- SubscriptionPost
- TagsCollection
- TagsLink
- Target
- TargetResourceRep
- Team
- TeamCustomRole
- TeamCustomRoles
- TeamImportsRep
- TeamMaintainers
- TeamMembers
- TeamPatchInput
- TeamPostInput
- TeamProjects
- Teams
- TeamsPatchInput
- TimestampRep
- Token
- TokenSummary
- Tokens
- TreatmentInput
- TreatmentParameterInput
- TreatmentRep
- TreatmentResultRep
- TreatmentsInput
- TriggerPost
- TriggerWorkflowCollectionRep
- TriggerWorkflowRep
- UnauthorizedErrorRep
- UpdatePhaseStatusInput
- UpsertContextKindPayload
- UpsertFlagDefaultsPayload
- UpsertPayloadRep
- UpsertResponseRep
- UrlMatcher
- UrlMatchers
- UrlPost
- User
- UserAttributeNamesRep
- UserFlagSetting
- UserFlagSettings
- UserRecord
- UserSegment
- UserSegmentRule
- UserSegments
- Users
- UsersRep
- ValidationFailedErrorRep
- ValuePut
- Variation
- VariationEvalSummary
- VariationOrRolloutRep
- VariationSummary
- VersionsRep
- Webhook
- WebhookPost
- Webhooks
- WeightedVariation
- WorkflowTemplateMetadata
- WorkflowTemplateOutput
- WorkflowTemplateParameter
- WorkflowTemplatesListingOutputRep
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
If the OpenAPI document is large, imports in launchdarkly_api.apis and launchdarkly_api.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from launchdarkly_api.api.default_api import DefaultApi
from launchdarkly_api.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import launchdarkly_api
from launchdarkly_api.apis import *
from launchdarkly_api.models import *
from __future__ import print_function
import os
from pprint import pprint
import launchdarkly_api
from launchdarkly_api.model.variation import Variation
from launchdarkly_api.model.feature_flag_body import FeatureFlagBody
from launchdarkly_api.api import feature_flags_api
from launchdarkly_api.rest import ApiException
configuration = launchdarkly_api.Configuration()
configuration.api_key['ApiKey'] = os.getenv("LD_API_KEY")
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with launchdarkly_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = feature_flags_api.FeatureFlagsApi(api_client)
project_key = "openapi"
flag_key = "test-python"
# Create a flag with json variations
flag_post = FeatureFlagBody(
name=flag_key,
key=flag_key,
variations=[
Variation(value=[1, 2]),
Variation(value=[3, 4]),
Variation(value=[5]),
])
try:
api_response = api_instance.post_feature_flag(project_key, flag_post)
pprint(api_response)
except ApiException as e:
print("Exception creating flag: %s\n" % e)
# Clean up the flag
try:
api_response = api_instance.delete_feature_flag(project_key, flag_key)
pprint(api_response)
except ApiException as e:
print("Exception deleting flag: %s\n" % e)