Hello All,
I am new to this platform. I am trying to update a jira component by jiRA api call in python but its giving me an error,
any help would be highly appreciated. please find the below code and error
r = requests.put('https://onejira.company.com/rest/api/2/issue/xyz-13016'
, headers = {'Authorization': "Basic abcd",'cache-control': "no-cache"}
, data = json.dumps({"update" : {"components" : [{"set" : [{"name" : "Automation"}]}]}})
)
r.raise_for_status()
Its giving me error code 415 Client Error: for url
You can wrap like this https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/jira.py#L805 :)
in your situation I see is related to the component json.
Please, validate via postman.
I like to double check via dev tools from browser
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.