modifying api to return the objects being created and updated