Difference between revisions of "Delete Item By External Id"

From MyMobileWorkers API
Jump to: navigation, search
Line 9: Line 9:
 
|-
 
|-
 
! URL
 
! URL
−
| colspan="2" |  http://:base_url/:api_path/:version/items/item/external
+
| 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 "http://live.mymobileworkers.com:8080/api/1/items/item/external?api_key=testkey&external_id=test"
+
curl -X DELETE "https://live.mymobileworkers.com:8181/api/1/items/item/external?api_key=testkey&external_id=test"

Revision as of 13:09, 21 January 2016

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"}]}

Example curl request

curl -X DELETE "https://live.mymobileworkers.com:8181/api/1/items/item/external?api_key=testkey&external_id=test"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox