I am trying to add attachment to a Jira issue by REST API POST Add attachment endpoint. It works OK, just documentation is confusing for me:
- Where to specify additional Request body params like
name
,originalFilename
,contentType
,inputStream
, … and what do they mean? I’ve tried them as other form-data params, afterContent-Disposition:
etc., but have seen no change in the attachment metadata.- E.g.
Content-Disposition: form-data; name="file"; filename="hello.txt"; contentType="text/plain"
does not work for content type.
- E.g.
- Specifying
Content-Type:
afterContent-Disposition:
works, but is not documented.- E.g.
Content-Disposition: form-data; name="file"; filename="hello.txt" Content-Type: text/plain
- E.g.
- A bit off-topic question, since it’s possible to add multiple attachments by one request, is it also possible to delete multiple attachments by one request? By DEL Delete attachment it’s possible just one by one.
Thanks