Patch #22356

Add support for updating attachments over REST API

Added by Oliver Luethi over 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% 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

UPDATE_ATTACHMENT.diff Magnifier (1.56 KB) Oliver Luethi, 2016-03-31 11:19

update_attachment_api_with_tests.diff Magnifier (3.01 KB) Oliver Luethi, 2016-06-23 14:47

Associated revisions

Revision 15860
Added by Jean-Philippe Lang about 1 year ago

Rename AttachmentsController#edit and #update to #edit_all and #update_all (#22356).

Revision 15861
Added by Jean-Philippe Lang about 1 year ago

Add support for updating attachments over REST API (#22356).

History

#1 Updated by Toshi MARUYAMA over 1 year ago

Please add tests like #14828#note-6.

#2 Updated by Toshi MARUYAMA over 1 year ago

  • Description updated (diff)

#3 Updated by Oliver Luethi over 1 year ago

Toshi MARUYAMA wrote:

Please add tests like #14828#note-6.

Added a new patch with test

#4 Updated by Toshi MARUYAMA over 1 year ago

  • Target version set to 3.4.0

#5 Updated by Jean-Philippe Lang about 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 about 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.

Also available in: Atom PDF