Difference between revisions of "Create Company Attachment"

From MyMobileWorkers API
Jump to: navigation, search
(Created page with "== Summary == {| border="1" class="wikitable" ! Create Company Attachment ! colspan="2" | |- ! URL | colspan="2" | http://base_url/api_path/version/companies/company/attach...")
 
(→‎Example curl request)
Line 29: Line 29:
  
 
== Example curl request ==
 
== Example curl request ==
−
curl -F api_key=YOUR KEY -F file=@/Users/lee_orritt/Pictures/lees_icon_lib/images/client/file.pdf "http://live.mymobileworkers.com:8080/api/1/companies/job/attachments/attachment"
+
curl -F api_key=YOUR KEY -F file=@//client/file.pdf "http://live.mymobileworkers.com:8080/api/1/companies/company/attachments/attachment"
  
 
== Responses ==
 
== Responses ==

Revision as of 09:53, 22 August 2016

Contents

Summary

Create Company Attachment
URL http://base_url/api_path/version/companies/company/attachments/attachment
Type POST
Params: api_key required
file required
comment required
Response JSON


The create company attachments method accepts a file to add as an attachement and an optional accompanying comment.

Example curl request

curl -F api_key=YOUR KEY -F file=@//client/file.pdf "http://live.mymobileworkers.com:8080/api/1/companies/company/attachments/attachment"

Responses

Example JSON

{"file":"tick.png","comment":"Transferred from API","created_at":"2013-05-20T14:42:37+00:00"}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox