Hi @vignesh09 ,
This is Nehita from Amplitude Support, thanks for writing in to the Community! Happy to look into this for you.
Looking at the Dashboard REST API article for the Retention Analysis chart, we can see that ‘userdata_cohort’ is a valid prop for a segment, however ‘New User’ is not. What is this prop supposed to be, as it doesn’t fit the segment definitions? It seems that you will need to change this.
In addition to that, if you'd like to pull the parameters from a chart so you can replicate the chart using the Dashboard REST API, I'd recommend following these steps:
- open up a new tab in chrome
- from the chrome menu (the 3 vertical dots on the right side of the address bar) click “More Tools” → “Developer Tools”
- Navigate to the “Network” tab in the opened window
- enter the search term “dataset” in the search box in the “Network” tab
- navigate the new tab page opened in step 1 to the chart in question
- click on the resulting “dataset” request that populates in the “Network” tab
- once the chart loads, navigate to the “Payload” subtab in that “dataset” request
- look for parameters like event_type, etc.
I hope this helps, but please let me know if you have any questions!
Best,
Nehita