             return
         }
 
+        // construct header parameters
+        var headers = defaultHeaders
+        headers["Accept"] = "application/json"
+        headers["Content-Type"] = "text/plain"
+        if let contentLanguage = contentLanguage {
+            headers["Content-Language"] = contentLanguage
+        }
+        if let acceptLanguage = acceptLanguage {
+            headers["Accept-Language"] = acceptLanguage
+        }
+
         // construct query parameters
         var queryParameters = [URLQueryItem]()
         queryParameters.append(URLQueryItem(name: "version", value: version))

            method: "POST",
            url: serviceURL + "/v3/profile",
            credentials: credentials,
            headerParameters: defaultHeaders,
            acceptType: "text/csv",
            contentType: "text/plain",
            queryItems: queryParameters,
            messageBody: body
        )

            method: "POST",
            url: serviceURL + "/v3/profile",
            credentials: credentials,
            headerParameters: headers,
            queryItems: queryParameters,
            messageBody: body
        )
