Team,
I am adding a new Bug into TargetProcess using Python requests. I am able to add & update "Name, Description" of Bug using following code.
import requests
headers = {'Content-Type' : 'application/json'}
payload = { 'Name' : 'Bug Test1' , 'Description' : 'Hello there.' }
>> r.status_code
200
But when I tried to Update Owner & Timestamp, it gives me HTTP 404, BAD Request Error.
I tried to update using various combinations but got same error.
payload = { 'Id' : '5334' , 'Owner' : 'user-test.' } | payload = { 'Id' : '5334' , 'Owner.FirstName' : 'user-test.' } | payload = { 'Id' : '5334' , 'Owner[FirstName]' : 'user-test.' } |
payload = { 'Id' : '5334' , 'Owner.FirstName' : 'user-test.' }
>> r.reason
Bad request