> ## Documentation Index
> Fetch the complete documentation index at: https://sequin.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a stream

> This endpoint updates a stream.

## Request parameters

<ParamField path="id" type="string" required>
  The ID of the sync.
</ParamField>

<ParamField body="slug" type="string">
  Slug of the stream.
</ParamField>

<RequestExample>
  ```shell theme={null}
  curl --request PATCH \
    --url https://api.sequin.io/v1/streams/c906b4a4-0cda-4f46-bd80-255f570c195d \
    --header 'Authorization: Bearer YOUR_API_TOKEN' \
    --header 'Content-Type: application/json' \
    --data '{ "slug": "dev" }'
  ```
</RequestExample>

## Response fields

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "id": "c906b4a4-0cda-4f46-bd80-255f570c195d",
    "slug": "dev",
    "org_id": "75958cea-c981-4116-9a0d-c1e99e826688",
    "created_at": "2024-12-15 01:29:29",
    "updated_at": "2024-12-15 01:29:29"
  }
  ```
</ResponseExample>

<ResponseField name="id" type="string">
  ID of the stream.
</ResponseField>

<ResponseField name="slug" type="string">
  Slug of the stream.
</ResponseField>

<ResponseField name="org_id" type="string">
  ID of your organization.
</ResponseField>

<ResponseField name="created_at" type="string">
  Timestamp of when the stream was created, in ISO 8601 format.
</ResponseField>

<ResponseField name="updated_at" type="string">
  Timestamp of when the stream was last updated, in ISO 8601 format.
</ResponseField>
