I was trying to delete a bunch of incorrectly added aliases - which I also added via the API. But for the life of me, I couldn’t get it to work. So, since the docs are somewhat vague, I thought I’d give a curl example that actually works.
curl --insecure --include --request POST --header "Content-Type: application/json" --header "X-API-Key: 00000-00000-00000-00000-00000" --data-binary '["384","385","386"]' "https://10.1.1.1/api/v1/delete/alias"
*-Replace the API key with your API key.
*-In the –data-binary section, use the Alias ID’s you want to delete. (As shown by the MC UI in the Alias section.)
*-Since my server is pre-production, and doesn’t currently have a valid signed cert, I use –insecure to allow an insecure SSL/TLS session. (You may have other security needs - and may need to adjust.)
*-Replace the IP of the target with your IP or FQDN.