---
title: "Update a data stream"
method: PATCH
path: "/data_streams/{key}"
---

# Update a data stream

`PATCH /data_streams/{key}`

Update the name of a data stream.

## Path parameters

- `key` string, required

## Request body

- object
  - `name` string — New human readable name

## Response `200`

Data stream updated

- DataStream
  - `id` integer — Unique numeric identifier
  - `key` string, required — Unique immutable identifier
  - `name` string, required — Human readable name
  - `description` string — Optional description of the data stream
  - `type` string — The type of data stream (e.g. api, csv, stripe, bank_feed)
  - `program_id` integer, nullable
  - `records_count` integer — Record count from the ClickHouse mirror

## Other responses

- `401` — Unauthorized
- `404` — Data stream not found

---

[API](https://skmtc.net/endclose/apis/end-close-api.md) · [All operations](https://skmtc.net/endclose/apis/end-close-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/endclose/end-close-api/revisions/613ceff68dc7/schema)
