What is the correct sequence of the REST API calls to accomplish this?