Ingest Batch
Ingest multiple resource events in a single request.
Issue #238: Batch ingestion for efficiency (up to 100 events).
Security: - Same as single event ingestion - Quota checked for entire batch
Request: POST /api/v1/resources/{resource_id}/events/batch Headers: X-Resource-API-Key: kagura_resource_... Body: { "events": [ {"op": "upsert", "doc_id": "PROD-1", "version": 1, "payload": {...}}, {"op": "delete", "doc_id": "PROD-999", "version": 5} ] }
Response: { "status": "success", "created_count": 2, "failed_count": 0, "event_ids": [12345, 12346], "errors": [] }
Errors: - 401: Invalid/revoked token - 403: Cross-tenant ingest blocked (Issue #322) - 404: Resource not bound to an active Context - 422: Validation error (max 100 events) - 429: Quota exceeded
Request
- Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
- URL: https://memory.kagura-ai.com/api/v1/resources/{resource_id}/events/batch
- Auth: none declared
Path parameters
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.