I don't understand why I receiving of 204 respond when I want to update one field at a Jira instance ? Could you please to help me ?
import requests
server = 'https://myjira.com'
endpoint = '/rest/api/2/issue/'
auth = ('login', 'password')
headers = {
"Content-Type": "application/json;charset=UTF-8"
}
payload = {
"update": {"customfield_15950": [{"set": "1999-03-07"}]}
}
respond = requests.put(
f'{server}{endpoint}KEY-705',
headers=headers,
json=payload,
auth=auth,
)
print(respond, respond.text)
It looks like 204 is the correct response here.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204