Method: properties.dataStreams.create

  • Data streams are created using a POST request to the specified URL.

  • The request requires a parent parameter in the path, formatted as properties/*.

  • The request body must include an instance of DataStream.

  • A successful response will contain a newly created DataStream instance.

  • Creating a data stream requires the https://www.googleapis.com/auth/analytics.edit authorization scope.

Creates a DataStream.

HTTP request

POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/dataStreams

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Example format: properties/1234

Request body

The request body contains an instance of DataStream.

Response body

If successful, the response body contains a newly created instance of DataStream.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/analytics.edit