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...") |
(→Example curl request) |
||
| (2 intermediate revisions by one user not shown) | |||
| Line 9: | Line 9: | ||
|- | |- | ||
! URL | ! URL | ||
| − | | colspan="2" | | + | | colspan="2" | https://:base_url/:api_path/:version/items/item/external |
|- | |- | ||
! Type | ! Type | ||
| Line 32: | Line 32: | ||
== Example curl request == | == Example curl request == | ||
| − | curl -X DELETE " | + | curl -X DELETE "https://api.mymobileworkers.com:8181/api/1/items/item/external?api_key=testkey&external_id=test" |
Latest revision as of 12:43, 14 November 2016
[edit] 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 | https://: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"}]}
[edit] Example curl request
curl -X DELETE "https://api.mymobileworkers.com:8181/api/1/items/item/external?api_key=testkey&external_id=test"