Log Events
POST /events
Add events to the event store. When process_user_actions=true
new events will trigger updates to user action recommendations and label weights.
Request Parameters
Query Parameters
Name | Type | Description |
---|---|---|
queue_updates | boolean | Default: False |
process_user_actions | boolean | Default: True |
Header Parameters
Name | Type | Description |
---|---|---|
program-id required | string |
Request Body
EventList | application/json
Name | Type | Properties |
---|---|---|
events required | array | items: {'$ref': '#/components/schemas/Event'} |
Event | application/json
Name | Type | Properties |
---|---|---|
user_id required | string | |
event_timestamp required | string | description: Time the event occurred in ISO 8601 format |
event_type required | string | |
asset_id required | string | |
labels required | array | items: {} |
Request Example
{
"events": [
{
"user_id": "string",
"event_timestamp": "string",
"event_type": "string",
"asset_id": "string",
"labels": "array"
}
]
}
Responses
200
Successful Response
SuccessMessage | application/json
Name | Type | Properties |
---|---|---|
result required | string |
Response Example
{
"result": "string"
}
422
Validation Error
HTTPValidationError | application/json
Name | Type | Properties |
---|---|---|
detail | array | items: {'$ref': '#/components/schemas/ValidationError'} |
ValidationError | application/json
Name | Type | Properties |
---|---|---|
loc required | array | items: {'anyOf': [{'type': 'string'}, {'type': 'integer'}]} |
msg required | string | |
type required | string |