I am using this code:
payload = {'update': { 'summary': [ {'set': 'new summary here'} ] } }
url = 'https://my-jira-server/resr/api/2/issue/CCB-666'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
}
requests.put(url, headers=headers, data=payload)The call fails with error 400 with this message:
"Unexpected character ('u' (code 117)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')"
I've verified that the 'u' it refers to is the start of the 'update' in the payload.
What am I doing wrong here?