Implement create object API