provider Contexts PUT /api/v2/projects/{projectKey}/context-kinds/{key}
@utdk/launchdarkly /api/v2/projects/{projectKey}/context-kinds/{key}
Create or update context kind
Create or update a context kind by key. Only the included fields will be updated.
projectKey path required
The project key
string
key path required
The context kind key
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

putcontextkind
PUT/api/v2/projects/{projectKey}/context-kinds/{key}
Create or update a context kind by key. Only the included fields will be updated.

Parameters

required

The project key

required

The context kind key

Input

required

The context kind name

The context kind description

Alias for archived.

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

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

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.putcontextkind()