For Users > User Guide > Job Execution APIs > JobConfig File Listener API
Was this helpful?
JobConfig File Listener API
This service allows an API consumer to run an existing JobConfig with a file input (asynchronous only).
POST /api/jobconfigs/{jobconfigId}/listener/file
API Details
Asynchronous:
File payload 202 Accepted response
Result/output may be retrieved asynchronously after the job is complete
Maximum file size is configurable on-premise (100 MB in DataCloud)
Content-Type allowed: multipart/form-data
Example request:
POST /api/jobconfigs/1/listener/file?key=Accounts.txt HTTP/1.1 Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.
eyJzY29wZXMiOlsiUk9MRV9BRE1JTiIsIlJPTEVfVVNFUiJdLCJpZCI6MSwiYWNjb3VudCI6MSwic Content-Type: multipart/form-data
File Size Configuration and Limitations
File size limitations are governed by the Integration Manager multipart file configuration in (ProgramDataDirectory)/Actian/IntegrationManager/conf/application.properties.
For example, to support 100 MB file size:
# MultipartFiles
spring.servlet.multipart.enabled=true
spring.servlet.multipart.file-size-threshold=100KB
spring.servlet.multipart.location=${sharedDataPath}/tmp
spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=100MB
For unlimited file size (not recommended, as results are subject to hardware/OS limitations, which could lead to unrecoverable data loss):
# MultipartFiles
spring.servlet.multipart.enabled=true
spring.servlet.multipart.file-size-threshold=100KB
spring.servlet.multipart.location=${sharedDataPath}/tmp
spring.servlet.multipart.max-file-size=-1
spring.servlet.multipart.max-request-size=-1
Last modified date: 08/22/2022