---
title: "POST /sources/{id}/write"
method: POST
path: "/sources/{id}/write"
tags: ["sources", "write"]
---

# POST /sources/{id}/write

`POST /sources/{id}/write`

Write points to the backend time series data source

## Path parameters

- `id` string, required

## Query parameters

- `db` string, required
- `rp` string
- `precision` 'ns' | 'u' | 'ms' | 's' | 'm' | 'h'
- `consistency` 'any' | 'one' | 'quorum' | 'all'

## Request body

- string, byte

## Response `204`

Points written successfuly to database.

## Other responses

- `400` — Any query that results in a data source error (syntax error, etc) will cause this response. The error message will be passed back in the body
- `404` — Data source id does not exist.
- `408` — Timeout trying to query data source.
- `default` — Unexpected internal server error

---

[API](https://skmtc.net/influxdata/apis/chronograf.md) · [All operations](https://skmtc.net/influxdata/apis/chronograf/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/influxdata/chronograf/versions/ce55d963b4ac/schema)
