Creating data using the Rest API