---
title: "write metric data"
method: PUT
path: "/write"
tags: ["Write"]
---

# write metric data

`PUT /write`

receive metric data, then parse the data based on content type(flat buffer/proto buffer/influx).
write data via database channel, support content-type as below:
1. application/flatbuffer
2. application/protobuf
3. application/influx

## Query parameters

- `db` string, required
- `ns` string

## Response `204`

No Content

## Other responses

- `500` — internal error

## Changes

- **2022-07-03** `96ffe8b0558d` — 1 info
  - endpoint added
- **2022-07-02** `0f140e199de6` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/lindb/apis/lindb-open-api/changes/write/put.md)

---

[API](https://skmtc.dev/lindb/apis/lindb-open-api.md) · [All operations](https://skmtc.dev/lindb/apis/lindb-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lindb/lindb-open-api/revisions/550a11354ae5/schema)
