The parameters are passed in curl as key1=value1&key2=value2...
format. So, if the key1, key2, value1, value2 contains any special character like =
, &
, ?
then should be urlencoded.
Your problem is with this parameter:
resourceMethodAuthType-0=Application & Application User,Application & Application User,Application & Application User,Application & Application User,None
You have lots of &
character in your value. It should be urlencoded
. For example this & should be replaced with %26
So the string will be:
resourceMethodAuthType-0=Application %26 Application User,Application %26 Application User,Application %26 Application User,Application %26 Application User,None
Another thing, if you are running the command from windows, the use double quotes always, not single quote. For example:
-d "endpoint_config={\"production_endpoints\"...}"