jvondam
4 years agoNew Contributor
Curl command on Rest API giving HTTP 415 Unsupported Media Type
I'm trying use curl to send a custom format POST using the Rest API. I'm attempting to follow the documentation but am still getting the 415 response.
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!