v1
latestOpenAPI 3.0.32026-08-0613775357.6 KBreports
Create totals
Generates and returns only the aggregated totals for a report.
post/reports/totals
Request body
Example request
{
"view": "time_fees_hours",
"time_frame": "this_week",
"group_by": [
"client",
"user_id"
],
"filters": {
"project_id": {
"values": [
432,
561,
642
]
},
"project_tags": {
"values": [
432,
561,
642
]
},
"client": {
"values": [
432,
561,
642
]
},
"leave_type": {
"values": [
432,
561,
642
]
},
"project_type": {
"values": [
432,
561,
642
]
},
"project_state": {
"values": [
432,
561,
642
]
},
"phase_name": {
"values": [
432,
561,
642
]
},
"user_id": {
"values": [
432,
561,
642
]
},
"role": {
"values": [
432,
561,
642
]
},
"discipline": {
"values": [
432,
561,
642
]
},
"location": {
"values": [
432,
561,
642
]
},
"assignment_status": {
"values": [
432,
561,
642
]
},
"people_tags": {
"values": [
432,
561,
642
]
},
"date": {
"values": [
432,
561,
642
]
},
"week": {
"values": [
432,
561,
642
]
},
"month": {
"values": [
432,
561,
642
]
},
"record_type": {
"values": [
432,
561,
642
]
},
"entry_type": {
"values": [
432,
561,
642
]
},
"category": {
"values": [
432,
561,
642
]
},
"approval_status": {
"values": [
432,
561,
642
]
},
"approved_by": {
"values": [
432,
561,
642
]
},
"custom_fields": [
{
"id": 4321,
"operation": "inclusion",
"values": [
"E",
"S",
"R"
]
}
]
},
"today": "2018-03-28",
"calc_incurred_using": "confirmed-unconfirmed"
}Response
A JSON representation of the report totals (aggregated metrics).