-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Feature Request: Bulk Save/Update Endpoint for Namespace Entities
Current Behavior:
- Structures support namespaces that group entities.
- There is an existing bulk update endpoint for arrays of a single type of entity.
Requested Feature:
- Introduce a new endpoint that allows providing a dataset of closely related entities within a namespace.
- This dataset should be saved/updated as a bulk operation.
- The dataset format should be
Record<entityName, []Entity>.
E.g.:
POST /api/namespace/bulk {
"entity1": [ { "id": 123 } ],
"entity2": [ { "id": 123 } ]
}
Use Case:
- This feature will enable efficient management of related entities within a namespace, reducing the need for multiple API calls.
- This feature will "mitigate" single transaction (even elastic does not support it), so if any creation will fail, we will "rollback" previous version (if possible, if not we will report this error). Elastic does not support atomic operation, but for the client applications which calls structure it may act as single operation.
Thank you for considering this feature request!
Metadata
Metadata
Assignees
Labels
No labels