Difference between revisions of "Delete Entire Catalogue"
From MyMobileWorkers API
(→Example curl request) |
|||
| Line 32: | Line 32: | ||
== Example curl request == | == Example curl request == | ||
| − | curl -X DELETE "http:// | + | curl -X DELETE "http://api.mymobileworkers.com:8080/api/1/categories/all?api_key=testkey" |
Latest revision as of 12:45, 14 November 2016
[edit] Summary
It is not recommended to use this call in production/atall. Each time the catalogue is deleted the data remains on the server to maintain the links to any existing items in jobs/assets etc. Continual deleting / recreating of the catalogue will lead to an excessive number of deleted records stored on the server which may have a negative effect on downloading the catalogue to the device.
| Delete Jobs | ||
|---|---|---|
| URL | http://:base_url/:api_path/:version/categories/all | |
| Type | DELETE | |
| Params: | api_key | required |
| job_number | required | |
| Response | JSON | |
Uses a HTTP Delete
{"success_message":"catalogue deleted"}
[edit] Example curl request
curl -X DELETE "http://api.mymobileworkers.com:8080/api/1/categories/all?api_key=testkey"