Required. The parent resource name. If the write user event action is applied in DataStore level, the format is: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. If the write user event action is applied in Location level, for example, the event with Document across multiple DataStore, the format is: projects/{project}/locations/{location}.
Query parameters
Parameters
writeAsync
boolean
If set to true, the user event is written asynchronously after validation, and the API responds without waiting for the write.
Request body
The request body contains an instance of UserEvent.
Response body
If successful, the response body contains an instance of UserEvent.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["This webpage details the process of writing a single user event using a `POST` HTTP request to a specific Google Cloud Discovery Engine API endpoint."],["The request URL uses gRPC Transcoding syntax and requires a `parent` path parameter specifying the resource location, which can be at either the `DataStore` or `Location` level."],["The `writeAsync` query parameter, if set to true, allows for asynchronous writing of the user event after validation."],["The request body must include an instance of `UserEvent`, and the successful response body will also return an instance of `UserEvent`."],["To authorize the request, the OAuth scope `https://www.googleapis.com/auth/cloud-platform` and the IAM permission `discoveryengine.userEvents.create` on the `parent` resource are required."]]],[]]