When I try to add an attachemnt with the API (code below), I get the error:
"You do not have permission to create attachments for this issue."
url = self.base_http_url + 'rest/api/2/issue/' + issue_id + '/attachments'
headers = {'X-Atlassian-Token': 'no-check'}
r = requests.post(url, auth=self.auth, headers=headers, files=files)
Why am I getting this error? The user is admin and can successfully do everything else.