Count Filtered Entities
Get the count of entities matching specific filters. This endpoint uses the BSH Search object as body to apply filters before counting.
POST /api/entities/:entityName/countParameters
| Parameter | Type | Description |
|---|---|---|
| entityName | string | The name of the entity to count |
Request Body
The request body uses the BSH Search object format. Only the query field is required for filtering.
{
"entity": "EntityName",
"filters": [
{
"field": "status",
"operator": "eq",
"value": "active"
}
]
}Response
{
"data": [
{
"count": 25
}
],
"status": "OK",
"code": 200,
"timestamp": 1234567890,
"meta": {}
}