Move assignments api into correct location