Difference between revisions of "Create Company Attachment"
From MyMobileWorkers API
(→Example curl request) |
(→Example curl request) |
||
| Line 29: | Line 29: | ||
== Example curl request == | == Example curl request == | ||
| − | curl -F api_key=YOUR KEY -F file=@//client/file.pdf "http:// | + | curl -F api_key=YOUR KEY -F file=@//client/file.pdf "http://api.mymobileworkers.com:8080/api/1/companies/company/attachments/attachment" |
== Responses == | == Responses == | ||
Revision as of 12:52, 14 November 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://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"}