Difference between revisions of "Delete Job Attachment"

From MyMobileWorkers API
Jump to: navigation, search
(→‎Example curl request)
 
Line 32: Line 32:
  
 
== Example curl request ==
 
== Example curl request ==
−
curl -X DELETE "http://api.mymobileworkers.com:8080/api/1/job/attachments/attachment?api_key=demo&job_number=CG44710_45817&file=fileToDelete.pdf"
+
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"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox