Difference between revisions of "Create Job Attachment"

From MyMobileWorkers API
Jump to: navigation, search
(→‎Example curl request)
 
Line 2: Line 2:
 
{| border="1" class="wikitable"
 
{| border="1" class="wikitable"
  
−
! Create Job 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.
−
! colspan="2" |
+
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.
−
|-
+
−
!  URL
+
−
| colspan="2" | http://base_url/api_path/version/jobs/job/attachments/attachment
+
−
|-
+
−
! Type
+
−
| colspan="2" |POST
+
−
|-
+
−
! Params:
+
−
| api_key || required
+
−
|-
+
−
!
+
−
| file || required
+
−
|-
+
−
!
+
−
| job_number || required
+
−
|-
+
−
!
+
−
| comment || required
+
−
|-
+
  
−
! Response
+
All parameters and call returns are unchanged. Full documentation for the new attachments service is available here:
−
| colspan="2" | JSON
+
−
|}
+
  
−
 
+
https://live-api-v2.mymobileworkers.com/api/2/attachments/docs
−
The create job attachments method accepts an file to add as an attachement, the job_number of the job that the attachment references. an an optional comment.
+
−
 
+
−
If validate_only is set the jobs will only be validated and not actually inserted. This can be used to check an entire dataset for errors before submitting.
+
−
 
+
−
== Example curl request ==
+
−
curl -F api_key=YOUR KEY -F job_number=AJOBNUMBER -F file=@/Users/lee_orritt/Pictures/lees_icon_lib/images/client/file.pdf "http://api.mymobileworkers.com:8080/api/1/jobs/job/attachments/attachment"
+
−
 
+
−
== Responses ==
+
−
=== Example JSON ===
+
−
 
+
−
<source lang="java">
+
−
{"file":"tick.png","comment":"Transferred from API","created_at":"2013-05-20T14:42:37+00:00","job_status":"NEW"}
+
−
</source>
+

Latest revision as of 09:20, 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