# Curl command on Rest API giving HTTP 415 Unsupported Media Type

**URL:** <https://community.smartbear.com/t/curl-command-on-rest-api-giving-http-415-unsupported-media-type/320>\
**Category:** Zephyr\
**Tags:** test, migrated, zephyr-scale\
**Created:** [April 8, 2022, 5:58am UTC](https://community.smartbear.com/t/curl-command-on-rest-api-giving-http-415-unsupported-media-type/320 "2022-04-08T05:58:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 8, 2022, 5:58am UTC](https://community.smartbear.com/t/curl-command-on-rest-api-giving-http-415-unsupported-media-type/320/1 "2022-04-08T05:58:15Z")

</div>

> Originally posted by **jvondam** on April 07, 2022

I’m trying use curl to send a custom format POST using the Rest API. I’m attempting to follow the [documentation](https://support.smartbear.com/zephyr-scale-cloud/api-docs/#operation/createCustomExecutions) but am still getting the 415 response.

```auto
curl -H "Content-Type: application/json" 
-H "Content-Length: 16" 
-H "Authorization: Bearer <access token> https://api.zephyrscale.smartbear.com/v2/automations/executions/custom 
-d '{"file": "ll-analytics.csv"}'

```

I have verified the access token works with a simple GET using curl. I have a feeling my syntax using the file is wrong, or I’m missing something. Any help would be great, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 8, 2022, 8:07am UTC](https://community.smartbear.com/t/curl-command-on-rest-api-giving-http-415-unsupported-media-type/320/2 "2022-04-08T08:07:25Z")

</div>

> Originally posted by **DavidL** on April 08, 2022

Hi!

The custom endpoint should be used with Junit 4 file. So your CSV file won’t work. If you want to use Junit 5, please use the unit endpoint instead of the custom one.

Please check the doc:  
[https://support.smartbear.com/zephyr-scale-cloud/docs/test-automation/junit-integration-custom.html](https://support.smartbear.com/zephyr-scale-cloud/docs/test-automation/junit-integration-custom.html)

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 8, 2022, 4:25pm UTC](https://community.smartbear.com/t/curl-command-on-rest-api-giving-http-415-unsupported-media-type/320/3 "2022-04-08T16:25:49Z")

</div>

> Originally posted by **jvondam** on April 08, 2022

Thanks for the reply. However I am trying to upload results from another CI/CD tool, and it is only presented in CSV. Is the only available format XML for JUnit 5? Or is there another endpoint that supports CSV?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 11, 2022, 1:59pm UTC](https://community.smartbear.com/t/curl-command-on-rest-api-giving-http-415-unsupported-media-type/320/4 "2022-04-11T13:59:13Z")

</div>

> Originally posted by **DavidL** on April 11, 2022

Unfortunately, there is no endpoint supporting CSV.

You can use the API endpoint “POST /testexecutions” to update the status every time.

Otherwise, we support Cucumber JSON result files through an endpoint similar to the Junit endpoint.

If I may, what is your pipeline setup?

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 11, 2022, 9:22pm UTC](https://community.smartbear.com/t/curl-command-on-rest-api-giving-http-415-unsupported-media-type/320/5 "2022-04-11T21:22:48Z")

</div>

> Originally posted by **jvondam** on April 11, 2022

Ok, that endpoint is useful to know. I am using GoCD to run tests. However it is a custom python script that generates the CSV file. It won’t be too difficult to migrate that script to generate XML instead, which is likely what I will do. Thank you for the help!

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [October 7, 2026, 5:15pm UTC](https://community.smartbear.com/t/curl-command-on-rest-api-giving-http-415-unsupported-media-type/320/6 "2026-10-07T17:15:48Z")

</div>

Closed on October 7, 2026, 5:15pm UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
