How to update journal by using Rest Api

Added by Mao H 5 months ago

Hi,

As mentioned in this issue #25793
I wonder how I can use Rest Api to update a journal.
I've tried
curl -v http://server/pm/journals/327.json -H "Content-Type: application/json" -H "X-Redmine-API-Key: <my key>" -X PUT --data-binary "@put.note.json"
and it returns Not Authorized.

As Toshi MARUYAMA wrote in the aforementioned issue, I can update it by issue Api, but I don't find the wiki page about that. What I found is how to get journals with issue api. Can anybody point me to how to update a journal?

Thanks,

Replies (1)

RE: How to update journal by using Rest Api - Added by Guillermo ML 3 months ago

AFAIK you can't edit a journal using REST Api, you can add a journal to an issue or obtain the issue's journal list.
The library Python Redmine have a very good documentation about it

https://python-redmine.com/resources/issue.html#journals

The docs are about the library, but as it says that supports 100% of Redmine API it's a useful resource about what you can or can't do using the REST Api.

(1-1/1)