Difference between revisions of "Create Company Attachment"

From MyMobileWorkers API
Jump to: navigation, search
(→‎Example curl request)
(→‎Summary)
Line 19: Line 19:
 
!  
 
!  
 
| comment || required
 
| comment || required
 +
|-
 +
!
 +
| folder_key ||
 
|-
 
|-
  

Revision as of 11:07, 12 March 2018

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
folder_key
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://api.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