provider Metrics PATCH /api/v2/metrics/{projectKey}/{metricKey}
@utdk/launchdarkly /api/v2/metrics/{projectKey}/{metricKey}
Update metric
Patch a metric by key. Updating a metric uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).
projectKey path required
The project key
string
metricKey path required
The metric 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.

patchmetric
PATCH/api/v2/metrics/{projectKey}/{metricKey}
Patch a metric by key. Updating a metric uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).

Parameters

required

The project key

required

The metric key

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.patchmetric()