12 Sep 2022 06:48 AM - last edited on 13 Sep 2022 12:34 AM by MaciejNeumann
I am failing to upload an android mapping file to the Dynatrace API. The only response I get is a 400. Can anyone help with this? Following instructions as described here: https://www.dynatrace.com/support/help/how-to-use-dynatrace/real-user-monitoring/how-to-use-real-use...
curl --header "content-type: plain-text" --header 'Authorization: Api-Token <token>' https://<url>/api/config/v1/symfiles/<app_id>/<package_name>/ANDROID/12345678/4.0 -T "/path/to/file/mapping.txt"
Have tried a variety of variations on this including zipping the file and modifying the content-type.
Solved! Go to Solution.
Found the answer to this, even though the docs say to use 'content-type: text-plain', the header actually needs to be 'content-type: text/plain'.
Hi! Thank you for pointing this out, I've communicated it to our Documentation team. Glad to see you've found the solution to your problem too!