According to this api issue https://github.com/policy-design-lab/pdl-api/issues/272, the endpoint in the frontend needs to be updated as well.