I have been trying to create a remote link for an issue using the following endpoint.
/rest/api/2/issue/<ISSUE_KEY>/remotelink
The screencaps below shows the POST request logic.
Screen Shot 2016-06-29 at 7.00.16 PM.png
Screen Shot 2016-06-29 at 7.00.10 PM.png
The parameters in the post request are as follows:
full_url = 'https://<domain>.atlassian.net/rest/api/2/issue/PTPL-34/remotelink'
data = {"object": { "title": "Asana", "url": "https://asana.com/0/1234/1234" }}
This is the error that I get back from the API when the POST request is made (via requests):
{
u'errorMessages': [u"Unexpected character ('o' (code 111)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@180652f; line: 1, column: 2]"]
}
Any idea what I may be doing incorrectly?