All URIs are relative to https://app.launchdarkly.com/api/v2
Method | HTTP request | Description |
---|---|---|
DeleteProject | Delete /projects/{projectKey} | Delete a project by key. Caution-- deleting a project will delete all associated environments and feature flags. You cannot delete the last project in an account. |
GetProject | Get /projects/{projectKey} | Fetch a single project by key. |
GetProjects | Get /projects | Returns a list of all projects in the account. |
PatchProject | Patch /projects/{projectKey} | Modify a project by ID. |
PostProject | Post /projects | Create a new project with the given key and name. |
DeleteProject(ctx, projectKey) Delete a project by key. Caution-- deleting a project will delete all associated environments and feature flags. You cannot delete the last project in an account.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project GetProject(ctx, projectKey) Fetch a single project by key.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Projects GetProjects(ctx, ) Returns a list of all projects in the account.
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]
Project PatchProject(ctx, projectKey, patchDelta) Modify a project by ID.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectKey | string | The project key, used to tie the flags together under one project so they can be managed together. | |
patchDelta | []PatchOperation | 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]
Project PostProject(ctx, projectBody) Create a new project with the given key and name.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectBody | ProjectBody | Project keys must be unique within an account. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]