Certificate aggregation

Send a certificate aggregation query and return the aggregation result

Body required
application/json

The certificate aggregation query

query
string | null

The HCQL query to use for the search, represents the way to filter certificates. If not specified, it will filter nothing

groupBy
array of string | null

The field that the aggregation will take place on

withCount
boolean | null

If set to true, the total count of certificates matching the HCQL query will be returned

sortOrder
string | null
Enum Asc Desc KeyAsc KeyDesc
limit
integer | null

In case of an aggregate sending a lot of different results, how many must be sent back

having
object | null (Having)

A condition to apply to the result. Only the aggregates results with more than 5 certificates in them can be kept for example

Responses
  • 200 The aggregation result
    items
    array of object required

    All the groups in this aggregate

    count
    integer | null

    The total number of certificates matching the query

  • 400 Bad request
  • 401 Unauthorized request
  • 403 Unauthorized request
  • 500 Internal server error