/past_meetings/{meetingUUID}/participants giving 404 with meeting not found v2

I found the solution from this forum. I have to call https://api.zoom.us/v2/report/users/{0}/meetings instead of /v2/users/{userid}/meetings.

Get User’s Meetings, Meetings’ Past Instances and Past Meeting Instance’s Participants - API and Webhooks - Zoom Developer Forum