Перейти к содержимому

Post Events

POST
/v1/events
curl --request POST \
--url https://api.cloud.agentums.ru/v1/events \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "events": [ { "event": "example", "props": {} } ] }'

Записать батч продуктовых событий. Незнакомые события отбрасываются (белый список).

Media typeapplication/json
EventsBatch
object
events
Events
Array<object>
<= 50 items
EventIn
object
event
required
Event
string
<= 64 characters
props
Props
object
key
additional properties
any
Examplegenerated
{
"events": [
{
"event": "example",
"props": {}
}
]
}

Successful Response

Media typeapplication/json
EventsAck
object
recorded
required
Recorded
integer
Examplegenerated
{
"recorded": 1
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}