Skip to content

POST /event/bulk

Record Events Bulk

POST
/event/bulk

Record multiple events atomically in a single transaction.

All events succeed or all fail together. The shared_data contains common
fields (event_type, user_key, user_session_key, timestamp). All
events must be of the same type (specified in shared_data.event_type). The
events list contains event-specific data for each event. When
shared_data.context_type is set, it applies to all events and per-row
overrides are stripped.

Emits: (dynamic — event class resolved from shared_data.event_type at runtime)
Required scope: traceability:event:create

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Request Body

application/json
JSON
{
  
"shared_data": {
  
  
"_key": "string",
  
  
"event_type": "string",
  
  
"event_group": "string",
  
  
"primary": true,
  
  
"context_type": "string",
  
  
"context_key": "string",
  
  
"user_key": "string",
  
  
"user_session_key": "string",
  
  
"timestamp": "string",
  
  
"description": "string",
  
  
"additionalProperties": "string"
  
},
  
"events": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Responses

Successful Response

application/json
JSON
{
  
"status": 200,
  
"message": "string",
  
"detail": "string"
}

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.