Actions
Rest api with curl » History » Revision 1
Revision 1/10
| Next »
Jean-Philippe Lang, 2010-12-11 14:48
Using the REST API with cURL¶
curl is a command-line tool for transferring data using various protocols. It can be used to interact with the Redmine REST API.
Here is a simple example of a command that can be used to update an issue:
curl -v -H "Content-Type:application/json" -X PUT --data "@388.json" -u login:password http://redmine/issues/388.json
The file that contains the data sent to Redmine (388.json in the example above) would look like this:
{ "issue": { "subject": "subject123", "notes": "Changing the subject" } }
Updated by Jean-Philippe Lang about 14 years ago · 1 revisions