Skip to content

Latest commit

 

History

History
140 lines (87 loc) · 4.88 KB

ProjectsApi.md

File metadata and controls

140 lines (87 loc) · 4.88 KB

\ProjectsApi

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

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.

Required Parameters

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.

Return type

(empty response body)

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetProject

Project GetProject(ctx, projectKey) Fetch a single project by key.

Required Parameters

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.

Return type

Project

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetProjects

Projects GetProjects(ctx, ) Returns a list of all projects in the account.

Required Parameters

This endpoint does not need any parameter.

Return type

Projects

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PatchProject

Project PatchProject(ctx, projectKey, patchDelta) Modify a project by ID.

Required Parameters

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/'

Return type

Project

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

PostProject

Project PostProject(ctx, projectBody) Create a new project with the given key and name.

Required Parameters

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.

Return type

Project

Authorization

Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]