In BAW 19.X content type application/x-www-form-urlencoded is not supported.
However, you can use multipart/form-data content type.
See:
https://www.ibm.com/docs/en/baw/19.x?topic=javascript-passing-file-types#cdev_restapis_invoke_rest_c__7_file_outputOther restrictions are documented here:
https://www.ibm.com/docs/en/baw/19.x?topic=service-limitations-invoking-rest------------------------------
Sebastian Tylko
------------------------------
Original Message:
Sent: Mon February 07, 2022 07:11 AM
From: Alistair Gardner
Subject: Uploading a file in External Service
I am trying to import a YAML file for an external service, but I am getting the following error on import.

This is the YAML for that part:
/XXXX/Upload:
post:
summary: Document upload
tags:
- Misc
operationId: Documentupload
deprecated: false
produces:
- application/json
Consumes:
- application/x-www-form-urlencoded
parameters:
- name: TransactionID
in: formData
required: true
type: string
description: ''
- name: File
in: formData
required: true
type: file
description: ''
responses:
'200':
description: ''
headers: {}
schema:
$ref: "#/definitions/Documentuploadout"
security:
- basic: []
How can I correct this for pass a document to this external service
------------------------------
Alistair Gardner
------------------------------