---
title: "POST /v1beta/{+parent}/dataStreams"
method: POST
path: "/v1beta/{+parent}/dataStreams"
tags: ["properties"]
---

# POST /v1beta/{+parent}/dataStreams

`POST /v1beta/{+parent}/dataStreams`

Creates a DataStream.

## Path parameters

- `parent` string, required

## Request body

- GoogleAnalyticsAdminV1betaDataStream — A resource message representing a data stream.
  - `name` string — Identifier. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000"
  - `type` 'DATA_STREAM_TYPE_UNSPECIFIED' | 'WEB_DATA_STREAM' | 'ANDROID_APP_DATA_STREAM' | 'IOS_APP_DATA_STREAM' — Required. Immutable. The type of this DataStream resource.
  - `createTime` string, google-datetime — Output only. Time when this stream was originally created.
  - `androidAppStreamData` GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData — Data specific to Android app streams.
    - `firebaseAppId` string — Output only. ID of the corresponding Android app in Firebase, if any. This ID can change if the Android app is deleted and recreated.
    - `packageName` string — Immutable. The package name for the app being measured. Example: "com.example.myandroidapp"
  - `displayName` string — Human-readable display name for the Data Stream. Required for web data streams. The max allowed display name length is 255 UTF-16 code units.
  - `iosAppStreamData` GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData — Data specific to iOS app streams.
    - `firebaseAppId` string — Output only. ID of the corresponding iOS app in Firebase, if any. This ID can change if the iOS app is deleted and recreated.
    - `bundleId` string — Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.example.myiosapp"
  - `updateTime` string, google-datetime — Output only. Time when stream payload fields were last updated.
  - `webStreamData` GoogleAnalyticsAdminV1betaDataStreamWebStreamData — Data specific to web streams.
    - `firebaseAppId` string — Output only. ID of the corresponding web app in Firebase, if any. This ID can change if the web app is deleted and recreated.
    - `measurementId` string — Output only. Analytics Measurement ID. Example: "G-1A2BCD345E"
    - `defaultUri` string — Domain name of the web app being measured, or empty. Example: "http://www.google.com", "https://www.google.com"

## Response `200`

Successful response

---

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