---
title: "Creates a new stream view associated to a bucket."
method: POST
path: "/v1/accounts/{accountSid}/buckets/{bucketSid}/streamViews"
tags: ["Stream Views"]
---

# Creates a new stream view associated to a bucket.

`POST /v1/accounts/{accountSid}/buckets/{bucketSid}/streamViews`

Creates a stream view.

## Path parameters

- `accountSid` string, required — accountSid
- `bucketSid` string, required — bucketSid

## Request body

- Model24
  - `name` string, required — The name of the stream view
  - `icon` 'search' | 'star' | 'alert' | 'check' | 'bolt' | 'bookmark' | 'flag' | 'heart' — The icon associated with the stream view.
  - `criteria` string, required — The search criteria for the stream view

## Response `200`

Successful

- Stream20View — unresolved $ref

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/apitraffic/apis/apitraffic-api-documentation.md) · [All operations](https://skmtc.net/apitraffic/apis/apitraffic-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apitraffic/apitraffic-api-documentation/revisions/b2a22a9b5c98/schema)
