Skip to main content
POST
/
api
/
v2
/
code-refs
/
repositories
/
{repo}
/
branches
/
{branch}
/
extinction-events
Create extinction
curl --request POST \
  --url https://app.launchdarkly.com/api/v2/code-refs/repositories/{repo}/branches/{branch}/extinction-events \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "revision": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
    "message": "Remove flag for launched feature",
    "time": "1636558831870",
    "flagKey": "enable-feature",
    "projKey": "default"
  }
]
'
{
  "code": "invalid_request",
  "message": "Invalid request body"
}

Documentation Index

Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Path Parameters

repo
string<string>
required

The repository name

branch
string<string>
required

The URL-encoded branch name

Body

application/json
revision
string
required

The identifier for the revision where flag became extinct. For example, a commit SHA.

Example:

"a94a8fe5ccb19ba61c4c0873d391e987982fbbd3"

message
string
required

Description of the extinction. For example, the commit message for the revision.

Example:

"Remove flag for launched feature"

time
integer<int64>
required

Time of extinction

Example:

"1636558831870"

flagKey
string
required

The feature flag key

Example:

"enable-feature"

projKey
string
required

The project key

Example:

"default"

Response

Action succeeded