Patch #22356
Add support for updating attachments over REST API
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | REST API | |||
Target version: | 3.4.0 |
Description
Adds the support for updating issue attachments over REST-API
- granted permissions for update function
- added format.api response for REST-API calls
Associated revisions
Rename AttachmentsController#edit and #update to #edit_all and #update_all (#22356).
Add support for updating attachments over REST API (#22356).
History
#1
Updated by Toshi MARUYAMA almost 2 years ago
Please add tests like #14828#note-6.
#2
Updated by Toshi MARUYAMA almost 2 years ago
- Description updated (diff)
#3
Updated by Oliver Luethi almost 2 years ago
- File update_attachment_api_with_tests.diff
added
#4
Updated by Toshi MARUYAMA almost 2 years ago
- Target version set to 3.4.0
#5
Updated by Jean-Philippe Lang over 1 year ago
I know that the UI offers a convenient way to update all the attachments of an issue at once but the REST API should not work this way. The ressource here is the attachment and just like we support GET /attachments/:id.json
or DELETE /attachments/:id.json
, we should implement PATCH /attachments/:id.json
to update an attachment.
#6
Updated by Jean-Philippe Lang over 1 year ago
- Subject changed from Add support for updating issue attachments over REST-API to Add support for updating attachments over REST API
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
Feature added in r15861.