Problem posting issues via REST API

Added by Björn Steneram over 4 years ago

Hi!

Been trying to solve this problem for a while now. I have REST API activated and so on. Getting information from Redmine works all good. But as soon as i try to update or post new data i run into a brick wall.

In my case i want to create a new issue via the API and no matter what i do i get error and nothing happens.

I send my api key as a "key" in header and then use http://myserver.com/redmine/issues.xml

As parameters i send along project_id, description, priority_id and subject

Not even if i try to use the login in the url it works.

This is the debug info i get back in response:

Index: 0 Size: 0
DEBUG INFO: testConnection[
uri=http://myserver.com/redmine/issues.xml,
method=post,
dataType=xml,
contentType=xml,
securityContext=0,
serviceSettings=0,
headerParams=key=6367f5c3a5dcd775ec76358621012305628b274a,
serviceparams={
"inputParameters":""
},
dataFromTunnel=false
]

Anyone got any ideas on what i'm doing wrong or got some sample code they would like to share?

Best Regards

Bjorn