I’m receiving a 401 Unauthorized error when trying to post attachments to the Jira Cloud.
Everything works just fine on hosted server. What’s wrong?
Hosted
POST /rest/api/2/issue/:id/attachments
{
'Authorization': "Basic #{Base64.encode64(name + ':' + password)}",
'X-Atlassian-Token': 'no-check'
}
=> 200 OK
Cloud:
POST /rest/api/2/issue/:id/attachments
{
'Authorization': "Basic #{Base64.encode64(email + ':' + password)}",
'X-Atlassian-Token': 'no-check'
}
=> 401 UNAUTHORIZED