API for creating a new machine