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

Configure credentials above to enable sending.

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

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.patchmetric()