Update API to work with ios app