Skip to main content
PATCH
/
metrics
/
{metric_id}
Update metric
curl --request PATCH \
  --url https://api.example.com/metrics/{metric_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "sampling_rate": 123
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.uselemma.ai/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

metric_id
string
required

Metric ID.

Body

application/json
name
string
description
string | null
type
enum<string>
Available options:
SYNTHETIC,
OBSERVED
sampling_rate
number | null