I am trying to send a POST request to the Apigee Management API using acurl, but I get illegal option for -H and -d flags, any ideas?

This is the request I am trying to send:

acurl -X POST -H 'Content-Type: text/xml' -d "<MaskDataConfiguration name=\"default\"><JSONPathsResponse><JSONPathResponse>$.email</JSONPathResponse></JSONPathsResponse><MaskDataConfiguration>" "https://api.enterprise.apigee.com/v1/organizations/org_name/apis/proxy_name/maskconfigs"

ps: I replaced the real organization name with org_name and proxy name with proxy_name

final note: This is for learning purposes

,

1 1 105
1 REPLY 1

The data was in XML format but the editor removed all the tags