import requestsimport jsonname = "abc"url = f"https://jira.domain.com/rest/api/latest/issue/1343"body = {"update": {"customfield_11744": [{"set": {"name": name}}]}}r = requests.put(url, auth=('id','pw'), json=body)print(r.status_code)
Hello @anne
If you read the Python examples provided in the REST API documentation, they show how to use the <strong>requests.HTTPBasicAuth</strong> module to apply Base64 encoding to the username + token combination in the auth section of the header.
<strong>requests.HTTPBasicAuth</strong>
Also, what is the purpose of the letter 'f' before the url in your Python code?
It looks like you're new here. Sign in or register to get started.