---
title: "PATCH /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}"
method: PATCH
path: "/v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}"
tags: ["properties"]
---

# PATCH /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}

`PATCH /v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}`

## Request

- Base URL: `https://analyticsadmin.googleapis.com`
- URL: `https://analyticsadmin.googleapis.com/v1beta/properties/{propertiesId}/dataStreams/{dataStreamsId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/analytics.edit`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/analytics.edit`

Updates a DataStream on a property.

## Path parameters

- `propertiesId` string, required
- `dataStreamsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- GoogleAnalyticsAdminV1betaDataStream: A resource message representing a data stream.
  - `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"
  - `createTime` string, google-datetime: Output only. Time when this stream was originally created.
  - `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.
    - `bundleId` string: Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.example.myiosapp"
    - `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.
  - `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.
  - `updateTime` string, google-datetime: Output only. Time when stream payload fields were last updated.
  - `webStreamData` GoogleAnalyticsAdminV1betaDataStreamWebStreamData: Data specific to web streams.
    - `defaultUri` string: Domain name of the web app being measured, or empty. Example: "http://www.google.com", "https://www.google.com"
    - `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"

## Response `200`

Successful response

- GoogleAnalyticsAdminV1betaDataStream: A resource message representing a data stream.
  - `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"
  - `createTime` string, google-datetime: Output only. Time when this stream was originally created.
  - `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.
    - `bundleId` string: Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.example.myiosapp"
    - `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.
  - `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.
  - `updateTime` string, google-datetime: Output only. Time when stream payload fields were last updated.
  - `webStreamData` GoogleAnalyticsAdminV1betaDataStreamWebStreamData: Data specific to web streams.
    - `defaultUri` string: Domain name of the web app being measured, or empty. Example: "http://www.google.com", "https://www.google.com"
    - `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"

---

[API](https://skmtc.dev/google/apis/analyticsadmin.md) - [All operations](https://skmtc.dev/google/apis/analyticsadmin/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/analyticsadmin/revisions/2f06698abda1?raw)
