Forum Discussion

ldelagoutte's avatar
4 years ago

Issue with registration_data.registration_time in Rest API v2

I want to get registration_data.registration_time from search api.

But when I use the following request

../api/2.0/search?q=SELECT registration_data.registration_time FROM users 

I got an embedded registration_data object: in the JSON

{... "items":[
{"type":"user",
"registration_data":{
"type":"registration_data",
"registration_time":"2021-08-10T19:53:22.682+02:00"
}
}
],...

Instead, I want to get just a flat record, like:

[{"type":"user","registration_data.registration_time":"2021-08-10T19:53:22.682+02:00"}]

How can I do this ?

No RepliesBe the first to reply