Difference between revisions of "Delete Item By External Id"
From MyMobileWorkers API
(Created page with "== Summary == '''External ID is not enforced to be unique in the MMW system, as a result its possible for you to duplicate the external id in our system. If you call delete o...") |
|||
| Line 32: | Line 32: | ||
== Example curl request == | == Example curl request == | ||
| − | curl -X DELETE "http://live.mymobileworkers.com:8080/api/1/items/item/external?api_key=testkey& | + | curl -X DELETE "http://live.mymobileworkers.com:8080/api/1/items/item/external?api_key=testkey&external_id=test" |
Revision as of 09:14, 23 September 2014
Summary
External ID is not enforced to be unique in the MMW system, as a result its possible for you to duplicate the external id in our system. If you call delete on an external ID it will only delete the first one it finds not all results
| Delete Jobs | ||
|---|---|---|
| URL | http://:base_url/:api_path/:version/items/item/external | |
| Type | DELETE | |
| Params: | api_key | required |
| external_id | required | |
| Response | JSON | |
Uses a HTTP Delete
{"failed":[],"successful":[{"item_name":"Test"}]}
Example curl request
curl -X DELETE "http://live.mymobileworkers.com:8080/api/1/items/item/external?api_key=testkey&external_id=test"