Difference between revisions of "Delete Category By Name"

From MyMobileWorkers API
Jump to: navigation, search
Line 1: Line 1:
 
== Summary ==
 
== 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'''
 
  
 
{| border="1" class="wikitable"
 
{| border="1" class="wikitable"
Line 9: Line 8:
 
|-
 
|-
 
! URL
 
! URL
−
| colspan="2" |  http://:base_url/:api_path/:version/categories/category/external
+
| colspan="2" |  http://:base_url/:api_path/:version/categories/category/name
 
|-
 
|-
 
! Type
 
! Type
Line 18: Line 17:
 
|-
 
|-
 
!  
 
!  
−
| external_id || required
+
| name || required
 
|-
 
|-
 
! Response
 
! Response
Line 32: Line 31:
  
 
== Example curl request ==
 
== Example curl request ==
−
curl -X DELETE "http://live.mymobileworkers.com:8080/api/1/categories/category/external?api_key=testkey&external_id=test"
+
curl -X DELETE "http://live.mymobileworkers.com:8080/api/1/categories/category/name?api_key=testkey&name=test"

Revision as of 12:44, 23 September 2014

Summary

Delete Jobs
URL http://:base_url/:api_path/:version/categories/category/name
Type DELETE
Params: api_key required
name required
Response JSON


Uses a HTTP Delete

{"failed":[],"successful":[{"name":"Test"}]}

Example curl request

curl -X DELETE "http://live.mymobileworkers.com:8080/api/1/categories/category/name?api_key=testkey&name=test"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox