AI-generated Key Takeaways
-
This documentation outlines how to update an existing EventCreateRule using a PATCH request to a specified endpoint.
-
You will need to provide the
eventCreateRule.name
as a path parameter and use theupdateMask
query parameter to specify the fields to be updated. -
The request body should contain the updated EventCreateRule object in JSON format and the response will contain the updated EventCreateRule if successful.
-
Authorization requires the
https://www.googleapis.com/auth/analytics.edit
OAuth scope.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates an EventCreateRule.
HTTP request
PATCH https://analyticsadmin.googleapis.com/v1alpha/{eventCreateRule.name=properties/*/dataStreams/*/eventCreateRules/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
eventCreateRule.name |
Output only. Resource name for this EventCreateRule resource. Format: properties/{property}/dataStreams/{dataStream}/eventCreateRules/{eventCreateRule} |
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 EventCreateRule
.
Response body
If successful, the response body contains an instance of EventCreateRule
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/analytics.edit