Feature #10171
closed
Updating journal notes via REST API
Added by Taha Jahangir almost 13 years ago.
Updated over 2 years ago.
Description
Currently viewing journals via REST API is possible (with include=journals), but there is no way to update them.
Note that journal notes are edtiable in main ui.
Files
Is there any plan to fix this issue?
I would like to enjoy to this feature. Will it be possible in the future ? I found also similar issue Journals in REST API
- Has duplicate Feature #27870: API for editing/deleting notes in an issue added
Without this feature, there is no way to clean spam from Redmine websites in an automated way. This is a serious problem for our usage of Remdine.
This patch adds a PUT update API for journal.
This API has the following functions similar to those available from the page:
- Of the journal values, you can only update notes.
- When the notes of the journal that does not have the associated journal_details are changed to empty, the journal record is deleted.
Example:
curl -X PUT -d '{"journal": { "notes": "new notes" }}' -H "Content-Type: application/json" http://localhost:3000/journals/1.json?key=<api key>
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Target version set to 5.0.0
- Resolution set to Fixed
Committed the patch. Thank you for your contribution.
Also available in: Atom
PDF