Receive Events V1
POST/events/v1/events
Post game events, return number of events being posted to Event Hub
Request
Header Parameters
IP Address hint
- application/json
Body
required
Array [
- MOD1
- MOD1
- MOD1
- MOD1
]
event_list
object[]
required
List of events
Unique Event ID for this instance of the event
Possible values: non-empty and <= 128 characters
Type of event to process this as.
Time the event was triggered
Event specific parameters
custom_data
object
Event custom data
user_id
object
User who submitted the event
anyOf
string
Possible values: non-empty and <= 128 characters
session_id
object
Session ID to associate the event with
anyOf
string
Possible values: non-empty and <= 128 characters
correlation_id
object
Correlation ID to associate the event with
anyOf
string
Possible values: non-empty and <= 128 characters
client_ip
object
Client IP associated with the event
anyOf
string
Possible values: non-empty and <= 128 characters
Responses
- 200
- 207
- 400
- 404
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Number of events successfully posted to Event Hub
list of validation failure for each event.
{
"posted_events": 0,
"errors": [
null
]
}
Error Codes:
-
events_multi_results- Some of the events from the request failed to process, and uploaded to deadletter blob storage
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Error Codes:
-
event_denied- Events of that name are currently denied -
event_duplicated- Event has the same event_uuid as an event already received -
event_lists_invalid- The input eventLists is invalid, failed pydantic validation -
event_params_invalid- The event_params failed validation against the jsonschema defined for the type/version. See response description for more details. -
event_unsupported- Event name is not known -
events_all_failed- All of events from the request failed to process, and uploaded to deadletter blob storage
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Error Codes:
-
event_schema_invalid- event_params jsonschema is empty, failed to load from developer-api -
event_schema_not_found- The jsonschema is invalid and could not be used to validate the event_params value. See response description for more details.
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}