寫入單一使用者事件。
HTTP 要求
POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/dataStores/*}/userEvents:write
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
parent |
這是必要旗標,父項資源名稱。如果寫入使用者事件動作是在 |
查詢參數
參數 | |
---|---|
writeAsync |
如果設為 true,系統會在驗證後非同步寫入使用者事件,且 API 會在寫入完成前傳送回應。 |
要求主體
要求主體包含 UserEvent
的執行個體。
回應主體
如果成功,回應主體會包含 UserEvent
的執行個體。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/discoveryengine.readwrite
https://www.googleapis.com/auth/discoveryengine.assist.readwrite
詳情請參閱Authentication Overview。
IAM 權限
需要 parent
資源的下列 IAM 權限:
discoveryengine.userEvents.create
詳情請參閱 IAM 說明文件。