Difference between revisions of "Delete Job Attachment"
From MyMobileWorkers API
(Created page with "== Summary == {| border="1" class="wikitable" ! Delete Job Attachments ! colspan="2" | |- ! URL | colspan="2" | http://:base_url/:api_path/:version/job/attachments/attachme...") |
|||
| (One intermediate revision by one user not shown) | |||
| Line 32: | Line 32: | ||
== Example curl request == | == Example curl request == | ||
| − | curl -X DELETE "http:// | + | curl -X DELETE "http://api.mymobileworkers.com:8080/api/1/jobs/job/attachments/attachment?api_key=demo&job_number=CG44710_45817&file=fileToDelete.pdf" |
Latest revision as of 10:01, 14 August 2020
[edit] Summary
| Delete Job Attachments | ||
|---|---|---|
| URL | http://:base_url/:api_path/:version/job/attachments/attachment | |
| Type | DELETE | |
| Params: | api_key | required |
| job_number | required | |
| file | required | |
| Response | JSON | |
Uses a HTTP Delete
{"failed":[],"successful":[{"job_number":"CG44710_45817"}]}
[edit] Example curl request
curl -X DELETE "http://api.mymobileworkers.com:8080/api/1/jobs/job/attachments/attachment?api_key=demo&job_number=CG44710_45817&file=fileToDelete.pdf"