Controller/DeploymentController.php
public function createSite(DeploymentSite $deploymentSite)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['deploymentSite' => $deploymentSite], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/deployment', $parameters);
        $result = new DeploymentSiteResponse($result);

        return $result;
    }
public function createSite(DeploymentSite $deploymentSite)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['deploymentSite' => $deploymentSite], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/deployment', $parameters);
        $result = new DeploymentSiteResponse($result);

        return $result;
    }
Create a DeploymentSite.

@param  DeploymentSite         $deploymentSite A JSON encoded DeploymentSite to create
@return DeploymentSiteResponse