change api call for fetching schema's cases