Getting the below error when following this guide: Bulk User Imports
System.FormatException: ‘The format of value ‘multipart/form-data; boundary=—011000010111000001101001’ is invalid.’
I have my code setup as shown in the C# example:
request.AddHeader("authorization", "Bearer " + apiToken);
request.AddHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001");
request.AddParameter("multipart/form-data; boundary=---011000010111000001101001", "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"users\"; filename=\"output_0.json\"\r\nContent-Type: text/json\r\n\r\n\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"connection_id\"\r\n\r\nXXXXXXXXXXX\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"external_id\"\r\n\r\n123456\r\n-----011000010111000001101001--\r\n", ParameterType.RequestBody);
RestResponse response = client.Execute(request);
Any ideas how to rectify this issue?