Method: properties.dataStreams.create

  • Creates a new DataStream through an HTTP POST request to a specified URL.

  • Requires a parent property ID specified as a path parameter in the URL.

  • The request body must contain a DataStream object, outlined in provided documentation.

  • Upon successful execution, the response includes the newly created DataStream object.

  • Authorization is required using the https://www.googleapis.com/auth/analytics.edit scope.

Creates a DataStream.

HTTP request

POST https://analyticsadmin.googleapis.com/v1alpha/{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