Defect #31288
openRedmine API updating time entry
Description
Updating a time entry:
http://www.redmine.org/projects/redmine/wiki/Rest_TimeEntries#Updating-a-time-entry
results always in a 404
I'm using Redmine 3.4.6.stable and was using:
PUT /time_entries/[id].xml
Other action like:
Creating a time entry
is working.
Also, Delete is not working and I tried it with JSON as a replacement for XML, but with the same response.
Then I removed the extension like this:
/time_entries/[id]
and I got a 422, but the response gives me a full HTML page with:
Updated by Charlie Schaubmair over 7 years ago
I'm not a Ruby/Rails developer, but in routes.rb I can see:
This is the only entry for:
/time_entries/:id
so this means that the documentation at:
http://www.redmine.org/projects/redmine/wiki/Rest_TimeEntries#Updating-a-time-entry
is outdated and there is no end point for updating a time entry.
Is this correct?
Updated by Aleksandar Pavic over 7 years ago
It works via .json
For example, this worked for me:
/time_entries/1.json
Updated by Aleksandar Pavic over 7 years ago
Updated by Charlie Schaubmair over 7 years ago
Aleksandar Pavic visit redminecookbook.com wrote:
It works via .json
For example, this worked for me:
/time_entries/1.json[...]
You've tested it with:
Redmine 3.4.6.stable
?
Because I'm still getting 404 error when posting to e.g:
/time_entries/1.json