Aggregates the ontology objects present in the ObjectSet
from the provided object set definition.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:ontologies-read
.
string
The API name of the ontology. To find the API name, use the List ontologies endpoint or check the Ontology Manager.
string
The repository associated with a marketplace installation.
string
The package name of the generated SDK.
object
list<AggregationV2>
union
Represents the definition of an ObjectSet
in the Ontology
.
list<AggregationGroupByV2>
string
(enum)Enum values: REQUIRE_ACCURATE
, ALLOW_APPROXIMATE
object
Success response.
integer
string
(enum)Enum values: ACCURATE
, APPROXIMATE
list<AggregateObjectsResponseItemV2>
1curl -X POST \
2 -H "Content-type: application/json" \
3 -H "Authorization: Bearer $TOKEN" \
4 "https://$HOSTNAME/api/v2/ontologies/palantir/objectSets/aggregate" \
5 -d ''
1{
2 "data": [
3 {
4 "metrics": [
5 {
6 "name": "min_tenure",
7 "value": 1
8 },
9 {
10 "name": "avg_tenure",
11 "value": 3
12 }
13 ],
14 "group": {
15 "startDate": {
16 "startValue": "2020-01-01",
17 "endValue": "2020-06-01"
18 },
19 "city": "New York City"
20 }
21 },
22 {
23 "metrics": [
24 {
25 "name": "min_tenure",
26 "value": 2
27 },
28 {
29 "name": "avg_tenure",
30 "value": 3
31 }
32 ],
33 "group": {
34 "startDate": {
35 "startValue": "2020-01-01",
36 "endValue": "2020-06-01"
37 },
38 "city": "San Francisco"
39 }
40 }
41 ]
42}