---
title: "Create or update metrics stream"
method: PUT
path: "/metrics-stream/{ownerId}"
tags: ["Metrics"]
---

# Create or update metrics stream

`PUT /metrics-stream/{ownerId}`

Creates or updates the metrics stream for the specified workspace.

## Request body

- object — Input for creating or updating a metrics stream
  - `provider` 'BETTER_STACK' | 'GRAFANA' | 'DATADOG' | 'NEW_RELIC' | 'HONEYCOMB' | 'SIGNOZ' | 'GROUNDCOVER' | 'LOGFIRE' | 'CUSTOM' — Provider to send metrics to
  - `url` string — The endpoint URL to stream metrics to
  - `token` string — Authentication token for the metrics stream

## Response `200`

metrics stream successfully updated

- object
  - `ownerId` string, required — The ID of the owner
  - `provider` Provider, required — unresolved $ref
  - `url` string, required — The endpoint URL to stream metrics to

## Other responses

- `400` — The request could not be understood by the server.
- `500` — An unexpected server error has occurred.

---

[API](https://skmtc.dev/render/apis/render-public-api.md) · [All operations](https://skmtc.dev/render/apis/render-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/render/render-public-api/revisions/80e0ff74d033/schema)
