All URIs are relative to https://app.launchdarkly.com/api/v2
| Method | HTTP request | Description |
|---|---|---|
| DeleteMember | DELETE /members/{memberId} | Delete a team member by ID. |
| GetMe | GET /members/me | Get the current team member associated with the token |
| GetMember | GET /members/{memberId} | Get a single team member by ID. |
| GetMembers | GET /members | Returns a list of all members in the account. |
| PatchMember | PATCH /members/{memberId} | Modify a team member by ID. |
| PostMembers | POST /members | Invite new members. |
void DeleteMember (string memberId)
Delete a team member by ID.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class DeleteMemberExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new TeamMembersApi();
var memberId = memberId_example; // string | The member ID.
try
{
// Delete a team member by ID.
apiInstance.DeleteMember(memberId);
}
catch (Exception e)
{
Debug.Print("Exception when calling TeamMembersApi.DeleteMember: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| memberId | string | The member ID. |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Member GetMe ()
Get the current team member associated with the token
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class GetMeExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new TeamMembersApi();
try
{
// Get the current team member associated with the token
Member result = apiInstance.GetMe();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TeamMembersApi.GetMe: " + e.Message );
}
}
}
}This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Member GetMember (string memberId)
Get a single team member by ID.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class GetMemberExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new TeamMembersApi();
var memberId = memberId_example; // string | The member ID.
try
{
// Get a single team member by ID.
Member result = apiInstance.GetMember(memberId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TeamMembersApi.GetMember: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| memberId | string | The member ID. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Members GetMembers (decimal? limit, decimal? offset, string filter, string sort)
Returns a list of all members in the account.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class GetMembersExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new TeamMembersApi();
var limit = 8.14; // decimal? | The number of objects to return. Defaults to -1, which returns everything. (optional)
var offset = 8.14; // decimal? | Where to start in the list. This is for use with pagination. For example, an offset of 10 would skip the first 10 items and then return the next limit items. (optional)
var filter = filter_example; // string | A comma-separated list of filters. Each filter is of the form field:value. (optional)
var sort = sort_example; // string | A comma-separated list of fields to sort by. A field prefixed by a - will be sorted in descending order. (optional)
try
{
// Returns a list of all members in the account.
Members result = apiInstance.GetMembers(limit, offset, filter, sort);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TeamMembersApi.GetMembers: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | decimal? | The number of objects to return. Defaults to -1, which returns everything. | [optional] |
| offset | decimal? | Where to start in the list. This is for use with pagination. For example, an offset of 10 would skip the first 10 items and then return the next limit items. | [optional] |
| filter | string | A comma-separated list of filters. Each filter is of the form field:value. | [optional] |
| sort | string | A comma-separated list of fields to sort by. A field prefixed by a - will be sorted in descending order. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Member PatchMember (string memberId, List patchDelta)
Modify a team member by ID.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class PatchMemberExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new TeamMembersApi();
var memberId = memberId_example; // string | The member ID.
var patchDelta = new List<PatchOperation>(); // List<PatchOperation> | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/'
try
{
// Modify a team member by ID.
Member result = apiInstance.PatchMember(memberId, patchDelta);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TeamMembersApi.PatchMember: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| memberId | string | The member ID. | |
| patchDelta | List | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Members PostMembers (List membersBody)
Invite new members.
using System;
using System.Diagnostics;
using LaunchDarkly.Api.Api;
using LaunchDarkly.Api.Client;
using LaunchDarkly.Api.Model;
namespace Example
{
public class PostMembersExample
{
public void main()
{
// Configure API key authorization: Token
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new TeamMembersApi();
var membersBody = new List<MembersBody>(); // List<MembersBody> | New members to invite.
try
{
// Invite new members.
Members result = apiInstance.PostMembers(membersBody);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling TeamMembersApi.PostMembers: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| membersBody | List | New members to invite. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]