Create Company Attachment
From MyMobileWorkers API
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=@/Users/lee_orritt/Pictures/lees_icon_lib/images/client/file.pdf "http://live.mymobileworkers.com:8080/api/1/companies/job/attachments/attachment"
Responses
Example JSON
{"file":"tick.png","comment":"Transferred from API","created_at":"2013-05-20T14:42:37+00:00"}