Creating a deployment using the API