Status 400 trying to update test results

I'm trying to update the results of a Test Run through the REST API with Python, but for some reason my PUT requests while trying to enter the results return with status 400. The same code worked about a year ago and could update the results, so I'm not sure where the request is getting malformed.

The same Headers and request URLs work for my GET requests, so I'm not sure why the following payload doesn't work when fed into the json field of a Python requests PUT call:

{"fields": {"testRunSteps": [{"status": "PASSED"}, {"status": "PASSED"}, {"status": "PASSED"}, {"status": "PASSED"}, {"status": "PASSED"}, {"status": "PASSED"}]}}

Comments

  • Alessandro Valli
    Alessandro Valli Member, Data Exchange, Jama Connect Interchange™ (JCI) Posts: 787

    Hi @Franklin Gu

    I had a similar issue in the past. It was by using PATH. Try the labs version of the endpoint, it should work.

    Best,

    Alessandro
    Systems Engineer
    SICK AG