Atlas Copco Group Interview Question

How would you approach designing an api for this problem?