Good morning,
I am trying to update a custom field in Jira, using the following code and I'm getting a 415 error code. Any help would be greatly appreciated!
import json
import requests
jiraSession = requests.Session()
username = input("username: ")
password = input("password: ")
jiraURL = 'http://ourbaseurl.jira.com'
#-------------- CALL -----------------
searchAPI = jiraURL + '/rest/api/2/issue/ISSUE-1'
holder = requests.put(searchAPI, auth=(username, password), data=
{"update":
{"customfield_1000":
{
"set":
{
"value": "FIELD VALUE"
}
}
}})