Hiya Irfan
Yes that explains it.
Its well worth upgrading to 10.0.5.4 (latest) as there are quite a few new analytics features in the more recent fixpacks (performance tuning, scroll api for mass data export, new dashboards and ability to save and share queries)
Cheers
Chris
------------------------------
Chris Dudley
------------------------------
Original Message:
Sent: Mon August 07, 2023 02:09 AM
From: Irfan Rashid
Subject: IBM API Connect v10 Analytics REST API strange error
Hi Chris,
Thanks for answering. I am running an older version 10.0.5.1 so this explains the lack of fields parameter support. Attached the screenshot as well mentioning the version number.
------------------------------
Irfan Rashid
Original Message:
Sent: Mon August 07, 2023 01:58 AM
From: Chris Dudley
Subject: IBM API Connect v10 Analytics REST API strange error
Hiya
what are exact version of apic are you using? For future reference it helps to include that in every post here. ("V10" includes every release in the last 3 years - about 20 in total- so not hugely useful to narrow things down)
The fields parameter was added in 10.0.5.3, what version are you using?
Cheers
Chris
------------------------------
Chris Dudley
Original Message:
Sent: Fri August 04, 2023 06:44 AM
From: Irfan Rashid
Subject: IBM API Connect v10 Analytics REST API strange error
Hi,
We are trying to get some analytics event data out of the APIC v 10 to do some customized analysis. All we need is just a few fields and not the entire event record object. The documentation seem to support the filtering of the fields and states that we can pass a query parameter 'fields' and pass a comma separated list of the fields that we want included in the result set. However, when we try to call the API with the fields query parameter, it gives an error saying:
{
"status": 400,
"message": [
"The request contains an unknown query parameter 'fields' with the value 'plan_name'."
]
}
The api documentation can be found here. Any help in this regard will be highly appreciated.
------------------------------
Irfan Rashid
------------------------------