I would like to export a static image of a map and all its layers, using the ArcGIS REST API.
I have followed the DevLabs example here, using Postman:
Export a static image of a map | ArcGIS for Developers
However, the response returned after following steps 1-6 exactly as specified is:
{
"error": {
"code": 400,
"extendedCode": -2147467259,
"message": "Unable to complete operation.",
"details": [
"Expected property name; state : inPropertyValue; buffer : :null,\"Format\":null,\"Layout_Template\":null"
]
}
}
Can anyone advise what I am doing wrong, and why the example given does not work?
----- UPDATE:
Figured out why the example doesnt work - In Postman the default Content-Type is form-data, it has to be x-www-form-urlencoded to work correctly