Updated example for create api