Difference between revisions of "Create Company Attachment"

From MyMobileWorkers API
Jump to: navigation, search
(→‎Example JSON)
 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
{| border="1" class="wikitable"
 
{| border="1" class="wikitable"
  
−
! Create Company Attachment
+
As part of End of Life for TLS 1.0 and 1.1, MyMobileWorkers has switched off access to MMW digital files including images, attachments and signatures via TLS 1.0 or 1.1. As part of this work, we require all customers using the API to transfer attachments into MMW to use a new API call which will force connection via TLS 1.2. All parameters and call returns are unchanged. Full documentation for the new attachments service is available here: https://live-api-v2.mymobileworkers.com/api/2/attachments/docs
−
! colspan="2" |
+
−
|-
+
−
!  URL
+
−
| colspan="2" | http://base_url/api_path/version/companies/company/attachments/attachment
+
−
|-
+
−
! Type
+
−
| colspan="2" |POST
+
−
|-
+
−
! Params:
+
−
| api_key || required
+
−
|-
+
−
!
+
−
| file || required
+
−
|-
+
−
!
+
−
| comment || required
+
−
|-
+
−
!
+
−
| folder_key ||
+
−
|-
+
−
 
+
−
! Response
+
−
| colspan="2" | 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 ===
+
−
 
+
−
<source lang="java">
+
−
{"file":"tick.png","comment":"Transferred from API","created_at":"2013-05-20T14:42:37+00:00". "folder_key": null}
+
−
</source>
+

Latest revision as of 09:21, 21 November 2023

[edit] Summary

As part of End of Life for TLS 1.0 and 1.1, MyMobileWorkers has switched off access to MMW digital files including images, attachments and signatures via TLS 1.0 or 1.1. As part of this work, we require all customers using the API to transfer attachments into MMW to use a new API call which will force connection via TLS 1.2. All parameters and call returns are unchanged. Full documentation for the new attachments service is available here: https://live-api-v2.mymobileworkers.com/api/2/attachments/docs
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox