REST API: Error 404 when sending POST (cURL)

Added by Marko S 6 months ago

Hello Redmine-Professionals,

I'm always getting ERROR 400 when sending an POST curl Statement.
The Picture is in the Attachments.

cURL Statement:

curl "https://[Path to XML]/issues.xml" \
  -X POST \
  -d "[XML-Code]" \
  -H "X-Redmine-API-Key: [API-Key]" \
  -H "Content-Type: application/xml" 


<?xml version="1.0" encoding="UTF-8"?>
  <status type="integer">400</status>
  <error>Bad Request</error>

Thank you!

ksnip_20220408-121458.png - Error (243 KB)