Difference between revisions of "Create Company Attachment"
From MyMobileWorkers API
(→Example JSON) |
(→Example JSON) |
||
| Line 38: | Line 38: | ||
<source lang="java"> | <source lang="java"> | ||
| − | {"file":"tick.png","comment":"Transferred from API","created_at":"2013-05-20T14:42:37+00:00" | + | {"file":"tick.png","comment":"Transferred from API","created_at":"2013-05-20T14:42:37+00:00","folder_key": null} |
</source> | </source> | ||
Revision as of 11:08, 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","folder_key": null}