AnsweredAssumed Answered

Delete All ProductTemplates (MassUpdate Failing)

Question asked by mvieira mvieira on Feb 4, 2015
Latest reply on Feb 4, 2015 by mvieira mvieira

I'm running SugarCRM Professional, Version (Build 1006), On Demand, and using the REST API to synchronize product catalog data.

I'm issuing this very simple API call to delete all ProductTemplates records, per the API documentation for "DELETE /MassUpdate - An API to mass delete records" found on the API endpoint help page. Basically, it's an HTTP DELETE request with the parameter massupdate_params=true, very simple indeed.

The call is accepted and processed without errors, and it returns the expected {"status":"done"} response per the documentation.

BUT IT DOESN'T WORK. The ProductTemplates records are still there on my Sugar instance. What am I missing?

Here's the Wireshark capture of what's being submitted:
DELETE /rest/v10/ProductTemplates/MassUpdate HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 37
OAuth-Token: xxxxxx-xxxx-xxxxxx-xxxxxx-xxxxxxxxx
Accept: application/json, application/xml, text/json, text/x-json, text/javascript, text/xml
Accept-Encoding: identity
User-Agent: MyApp/1.00  {"massupdate_params":{"entire":true}}

Any help is appreciated.