Skip to main content
PUT
/
api
/
v2
/
projects
/
{projectKey}
/
context-kinds
/
{key}
Create or update context kind
curl --request PUT \
  --url https://app.launchdarkly.com/api/v2/projects/{projectKey}/context-kinds/{key} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "organization",
  "description": "An example context kind for organizations",
  "hideInTargeting": false,
  "archived": false,
  "version": 1
}
'
{
  "status": "success",
  "_links": {}
}

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

projectKey
string<string>
required

The project key

key
string<string>
required

The context kind key

Body

application/json
name
string
required

The context kind name

Example:

"organization"

description
string

The context kind description

Example:

"An example context kind for organizations"

hideInTargeting
boolean

Alias for archived.

Example:

false

archived
boolean

Whether the context kind is archived. Archived context kinds are unavailable for targeting.

Example:

false

version
integer

The context kind version. If not specified when the context kind is created, defaults to 1.

Example:

1

Response

Context kind upsert response

status
string

The status of the create or update operation

Example:

"success"

The location and content type of related resources