fix api wrt by id