---
title: "Update a Stream"
method: PUT
path: "/api/stream/{id}"
tags: ["Stream"]
---

# Update a Stream

`PUT /api/stream/{id}`

## Request

- Base URL: `https://api.lytics.io`
- URL: `https://api.lytics.io/api/stream/{id}`
- Auth: API key in header `Authorization`

Update a stream with a given ID. The parameters listed below provided in the PUT request will overwrite the current parameters in the model.

Stream attributes that a user is able to update:

* *slug* (string) ... raw value of the stream as it appears in both queries and collection

* *channel* (string, optional) ...  method by which this stream collects data. Only allowable channel types: web, email, mobile, ad, sms, pos

* *label* (string, optional) ... user assignable label, for display in the UI

* *description* (string, optional) ... user assignable description

* *providers* ([]string, optional) ... names of the providers that send data on this stream

## Path parameters

- `id` string, required

## Query parameters

- `account_id` string

## Response `200`

JSON representation of Streams Resource.

- StreamModel
  - `data` object[]
    - `account_id` string
    - `aid` number
    - `channel` string
    - `created` string
    - `hidden` boolean
    - `id` string
    - `method` string
    - `providers` unknown[]
      - unknown
    - `slug` string
    - `tables` unknown[]
      - unknown
    - `updated` string
  - `message` string
  - `status` number

---

[API](https://skmtc.dev/lytics/apis/v1-lytics-api.md) - [All operations](https://skmtc.dev/lytics/apis/v1-lytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lytics/apis/v1-lytics-api/revisions/339fd1d88486?raw)
