Assuming endpointevents is required, the following result was found.
index (not the ID of the record) m_Params = Map(); m_Params.put("range",50); m_Params.put("status","closed"); v_EndpointEvents = v_BaseURL + "/restapi/portal/" + v_PortalID + "/projects/" + v_ProjectID + "/events/"; r_PastEvents = invokeurl [ url...