I have managed to send my test results from my automation python script to TFS 2018 by creating a run and adding results to it. Now, I am trying to upload the xml file I produce with the detailed results of the test execution using the Create Test Result Attachment API call . The version of our API is 4.1