The DeleteIgnoreIgnore macro is on my list to update, but it is not yet updated. Part of the reason why is that using json in PUT or POST always makes my head hurt - i.e. it always seems to be trial and error. For example, I think this should work (dummy GC code here, but real codes used in testing):
But the API responds with:
I'm sure there's a problem with the way I constructed the json data variable, but I'll need more coffee (or someone else's help) to figure out what I've done wrong.
GSK |
$status=GCAPI2("lists/ignore/geocaches","POST",$jsonlist) <data> VarName=$jsonlist { "geocache": "GC1234" } <enddata> |
But the API responds with:
QUOTE |
{"statusCode":500,"statusMessage":"InternalServerError","errorMessage":"Invalid Geocache Reference Code", |
I'm sure there's a problem with the way I constructed the json data variable, but I'll need more coffee (or someone else's help) to figure out what I've done wrong.