I need to send three files to an API. When I do it directly via the API, I have no issues—the files are sent and I receive status code 200. However, when I try to send them through FME, I can’t get it to work. Am I making some configuration mistake in FME?
Hey Francisco,
Things to check :
- response body of your rejected feature
- authentication ?
- you've missed the "accept" header
Hey Fransisco,
Things to check :
- response body of your rejected feature
- authentication ?
- you've missed the "accept" header
Response body of your rejected feature
{"detail"::{"type":"missing","loc"::"body","files"],"msg":"Field required","input":null}]}
The API currently does not require authentication.
Could you help me with the "accept" header? I didn’t quite understand how to configure this header.
The header part of the request is documented here :

You don’t need to set the “content-type” one, it will be automatically defined with what you choose here :

But the “Accept” one might need to be defined, like this :

Another thing, the documentation asks for parts that should be called “files” :

But it seems like you called yours “Local File” :

That’s why you have the error that we could interpret as “missing the ‘body’ or ‘files’ key”
You should change that too
The header part of the request is documented here :

You don’t need to set the “content-type” one, it will be automatically defined with what you choose here :

But the “Accept” one might need to be defined, like this :

Another thing, the documentation asks for parts that should be called “files” :

But it seems like you called yours “Local File” :

That’s why you have the error that we could interpret as “missing the ‘body’ or ‘files’ key”
You should change that too
Thank you!