AI-generated Key Takeaways
- 
          Updates to enhanced measurement settings for a data stream require the stream to have enhanced measurement enabled. 
- 
          The request uses a PATCHHTTP method with a specific URL format for targeting the enhanced measurement settings resource.
- 
          Path parameters, such as enhancedMeasurementSettings.name, are used to identify the specific resource to be updated.
- 
          The updateMaskquery parameter is required to specify which fields within the enhanced measurement settings are being updated.
- 
          The request and response bodies contain instances of the EnhancedMeasurementSettingsobject, representing the settings being modified.
- 
          The update operation requires the https://www.googleapis.com/auth/analytics.editauthorization scope.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.
HTTP request
PATCH https://analyticsadmin.googleapis.com/v1alpha/{enhancedMeasurementSettings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| enhancedMeasurementSettings.name | 
 Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{dataStream}/enhancedMeasurementSettings Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" | 
Query parameters
| Parameters | |
|---|---|
| updateMask | 
 Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields. This is a comma-separated list of fully qualified names of fields. Example:  | 
Request body
The request body contains an instance of EnhancedMeasurementSettings.
Response body
If successful, the response body contains an instance of EnhancedMeasurementSettings.
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/analytics.edit