Create News with REST
Added by Gergely Szabo over 13 years ago
Hello,
I'm running Redmine 1.1.2 on Debian with Apache2/Passenger/MySQL.
I'd like to create News items through the REST interface with curl. I have enabled the REST interface in Administration/Settings.
The URL of the server is http://foo/redmine
I'm trying someting like this:
curl -X POST -H 'Content-type: text/xml'-H 'Accept: text/xml' \ -d '<news><project_id>test</project_id><title>REST</title><description>REST</description></news>' \ http://MyAPIkey:@foo/redmine/news?create
What's the required format of the sent xml-data for news (2nd line),
and what should be the URL (3rd line)?
I've looked through all related tickets and forums and have not found the answer.
Thanks
Gergely Szabó