Jira API Add attachment v3 params

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, after Content-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.
  • Specifying Content-Type: after Content-Disposition: works, but is not documented.
    • E.g.
      Content-Disposition: form-data; name="file"; filename="hello.txt"
      Content-Type: text/plain
      
  • 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