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 API call writes a single user event to a specified data store or location using the `POST` method with a defined URL structure."],["The request requires a `parent` path parameter, which designates the target data store or location where the user event will be written, and this format will differ depending on the level of operation, whether it is on a DataStore or location level."],["The API supports an optional `writeAsync` query parameter to handle user events asynchronously, so that the API will respond without waiting for the event to be written."],["The request body must contain a `UserEvent` instance, and the response body will also return a `UserEvent` instance if the operation is successful."],["The call requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform` and the IAM permission `discoveryengine.userEvents.create` on the `parent` resource."]]],[]]