AI-generated Key Takeaways
-
Data streams are created using a POST request to the specified URL.
-
The request requires a
parentparameter in the path, formatted asproperties/*. -
The request body must include an instance of
DataStream. -
A successful response will contain a newly created
DataStreaminstance. -
Creating a data stream requires the
https://www.googleapis.com/auth/analytics.editauthorization 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 |
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