Controller/DeploymentController.php
public function addMediaToDeploymentSite($id, array $mediaIds)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['mediaIds' => $mediaIds], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/deployment/' . $id . '/media', $parameters);

        return $result;
    }
public function addMediaToDeploymentSite($id, array $mediaIds)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['mediaIds' => $mediaIds], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/deployment/' . $id . '/media', $parameters);

        return $result;
    }
Deploy Media to a DeploymentSite.

Deploy Media to a DeploymentSite, this is an asynchronous method.

@param int   $id       deploymentSite to deploy to
@param int[] $mediaIds an array of int values