# How can I upload multiple JMX plugins with a single curl command?

**URL:** <https://community.dynatrace.com/t/how-can-i-upload-multiple-jmx-plugins-with-a-single-curl-command/20201>\
**Category:** Extensions\
**Tags:** jmx, extensions\
**Created:** [September 1, 2020, 2:55pm UTC](https://community.dynatrace.com/t/how-can-i-upload-multiple-jmx-plugins-with-a-single-curl-command/20201 "2020-09-01T14:55:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![irakli\_natsvlis](https://avatars.discourse-cdn.com/v4/letter/i/edb3f5/32.png) [@irakli\_natsvlis](https://community.dynatrace.com/u/irakli_natsvlis)\
**Post date:** [September 1, 2020, 2:55pm UTC](https://community.dynatrace.com/t/how-can-i-upload-multiple-jmx-plugins-with-a-single-curl-command/20201/1 "2020-09-01T14:55:27Z")

</div>

Hello,

Is it possible to upload multiple JMX ZIPs for an environment using a single curl command? If yes, what is the format? I tried

```auto
-F "file=@custom.caches.zip;type=application/zip" -F "file=@custom.OSFileDescriptors.zip;type=application/zip"

```

Does not work. Also tried

```auto
-F "file=@custom.caches.zip,custom.OSFileDescriptors.zip;type=application/zip"

```

Does not work either.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 1, 2020, 7:19pm UTC](https://community.dynatrace.com/t/how-can-i-upload-multiple-jmx-plugins-with-a-single-curl-command/20201/2 "2020-09-01T19:19:39Z")

</div>

As far as I know there is no way to upload multiple plugins in a single request. You have to upload each plugin definition in a separate request.

---

<div class="post-metadata">

**Author:** ![irakli\_natsvlis](https://avatars.discourse-cdn.com/v4/letter/i/edb3f5/32.png) [@irakli\_natsvlis](https://community.dynatrace.com/u/irakli_natsvlis)\
**Post date:** [September 2, 2020, 2:51am UTC](https://community.dynatrace.com/t/how-can-i-upload-multiple-jmx-plugins-with-a-single-curl-command/20201/3 "2020-09-02T02:51:59Z")

</div>

OK.

Here is the question - how can I speed up the upload/remediation?

I have a list of 10 plugins. And I have a list of 700 tenants missing these plugins. Calling API 7000 times takes 3 hours. Yes, my script has measured it.

I need to do it in less than 10 minutes. How can I do it?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 2, 2020, 5:55am UTC](https://community.dynatrace.com/t/how-can-i-upload-multiple-jmx-plugins-with-a-single-curl-command/20201/4 "2020-09-02T05:55:31Z")

</div>

You will have to rewrite your scripts to do the requests in parallel. You can issue multiple requests in parallel.

I’d recommend to read this blog post to get inspired:

> **[Managing the Dynatrace API across multiple thousand environments](https://www.dynatrace.com/news/blog/managing-the-dynatrace-api-across-multiple-thousand-environments/)**
>
> In this blog post we cover how to manage to consolidate all the API endpoints of all these Dynatrace environments under a single entry-point.
