All URIs are relative to https://app.launchdarkly.com
| Method | HTTP request | Description |
|---|---|---|
| createOAuth2Client | POST /api/v2/oauth/clients | Create a LaunchDarkly OAuth 2.0 client |
| deleteOAuthClient | DELETE /api/v2/oauth/clients/{clientId} | Delete OAuth 2.0 client |
| getOAuthClientById | GET /api/v2/oauth/clients/{clientId} | Get client by ID |
| getOAuthClients | GET /api/v2/oauth/clients | Get clients |
| patchOAuthClient | PATCH /api/v2/oauth/clients/{clientId} | Patch client by ID |
Client createOAuth2Client(oauthClientPost)
Create (register) a LaunchDarkly OAuth2 client. OAuth2 clients allow you to build custom integrations using LaunchDarkly as your identity provider.
import {
OAuth2ClientsApi,
Configuration,
OauthClientPost
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new OAuth2ClientsApi(configuration);
let oauthClientPost: OauthClientPost; //
const { status, data } = await apiInstance.createOAuth2Client(
oauthClientPost
);| Name | Type | Description | Notes |
|---|---|---|---|
| oauthClientPost | OauthClientPost |
Client
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | OAuth 2.0 client response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteOAuthClient()
Delete an existing OAuth 2.0 client by unique client ID.
import {
OAuth2ClientsApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new OAuth2ClientsApi(configuration);
let clientId: string; //The client ID (default to undefined)
const { status, data } = await apiInstance.deleteOAuthClient(
clientId
);| Name | Type | Description | Notes |
|---|---|---|---|
| clientId | [string] | The client ID | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Action succeeded | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Client getOAuthClientById()
Get a registered OAuth 2.0 client by unique client ID.
import {
OAuth2ClientsApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new OAuth2ClientsApi(configuration);
let clientId: string; //The client ID (default to undefined)
const { status, data } = await apiInstance.getOAuthClientById(
clientId
);| Name | Type | Description | Notes |
|---|---|---|---|
| clientId | [string] | The client ID | defaults to undefined |
Client
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OAuth 2.0 client response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClientCollection getOAuthClients()
Get all OAuth 2.0 clients registered by your account.
import {
OAuth2ClientsApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new OAuth2ClientsApi(configuration);
const { status, data } = await apiInstance.getOAuthClients();This endpoint does not have any parameters.
ClientCollection
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OAuth 2.0 client collection response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Client patchOAuthClient(patchOperation)
Patch an existing OAuth 2.0 client by client ID. Updating an OAuth2 client uses a JSON patch representation of the desired changes. To learn more, read Updates. Only name, description, and redirectUri may be patched.
import {
OAuth2ClientsApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new OAuth2ClientsApi(configuration);
let clientId: string; //The client ID (default to undefined)
let patchOperation: Array<PatchOperation>; //
const { status, data } = await apiInstance.patchOAuthClient(
clientId,
patchOperation
);| Name | Type | Description | Notes |
|---|---|---|---|
| patchOperation | Array | ||
| clientId | [string] | The client ID | defaults to undefined |
Client
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OAuth 2.0 client response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]