public function submitRequest($employeeId, array $data = [])
    {
        $xml = "<request>";

        if (isset($data['status'])) {
            $xml .= "<status>{$data['status']}</status>";
        } else {
            $xml .= "<status>requested</status>";
        }

        $xml .= "<start>{$data['start']}</start>
                <end>{$data['end']}</end>
                <timeOffTypeId>{$data['timeOffTypeId']}</timeOffTypeId>
                <amount>{$data['amount']}</amount>";
        
        if (isset($data['notes'])) {
            $xml .= "<notes><note from=\"employee\">{$data['notes']}</note></notes>";
        }

        $xml .= "<dates>";

        foreach ($data['dates'] as $date => $hours) {
            $xml .= "<date ymd=\"{$date}\" amount=\"{$hours}\" />";
        }

        $xml .= "</dates>";

        if (isset($data['previousRequest'])) {
            $xml .="<previousRequest>{$data['previousRequest']}</previousRequest>";
        }

        $xml .= "</request>";

        return $this->put("employees/{$employeeId}/time_off/request", $xml);
    }