- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
Writes a single user event.
HTTP request
POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*}/userEvents:write
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent resource name. If the write user event action is applied in |
Query parameters
Parameters | |
---|---|
write |
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
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
discoveryengine.userEvents.create
For more information, see the IAM documentation.