Difference between revisions of "Delete Item By External Id"

From MyMobileWorkers API
Jump to: navigation, search
(→‎Example curl request)
 
Line 32: Line 32:
  
 
== Example curl request ==
 
== Example curl request ==
−
curl -X DELETE "https://live.mymobileworkers.com:8181/api/1/items/item/external?api_key=testkey&external_id=test"
+
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"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox