---
title: "PUT /streams/{streamId}"
method: PUT
path: "/streams/{streamId}"
---

# PUT /streams/{streamId}

`PUT /streams/{streamId}`

Updates an existing stream. The stream version will be incremented by one.

Requires permission to access the [UpdateStream](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions) action.

## Path parameters

- `streamId` string, required

## Request body

- object
  - `description` string — The description of the stream.
  - `files` StreamFile[] — The files associated with the stream.
    - `fileId` integer — The file ID.
    - `s3Location` object — The location of the file in S3.
      - `bucket` string — The S3 bucket.
      - `key` string — The S3 key.
      - `version` string — The S3 bucket version.
  - `roleArn` string — An IAM role that allows the IoT service principal assumes to access your S3 files.

## Response `200`

Success

- UpdateStreamResponse
  - `streamId` string — The stream ID.
  - `streamArn` string — The stream ARN.
  - `description` string — A description of the stream.
  - `streamVersion` integer — The stream version.

## Other responses

- `480` — InvalidRequestException
- `481` — ResourceNotFoundException
- `482` — ThrottlingException
- `483` — UnauthorizedException
- `484` — ServiceUnavailableException
- `485` — InternalFailureException

---

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