Unsupported Media type exception

Hello Folks,
I am trying to start a process via REST call and body kept as form-data and upload a json file but I am getting
“type”: “NotSupportedException”,
“message”: “HTTP 415 Unsupported Media Type”

Can anyone please help me in this please !

Shoeb Sayyed

Hi @shoebsayyed118
I might be wrong but according to the documentation the call you’re trying to use supports application/json content type only and the error itself is about Unsupported Media Type.


Hi @Alex_Voloshyn Thank you for replying.
Is there any other way to start the the process with form data ?

Is there a specific reason why you can’t use application/json?
I also noticed that you’re trying to send the BPMN file. It does not seem to be allowed as well.

Could you please explain your use case in more detail and what you’re trying to achieve?


I am trying to start a process which i having a script task which excepts a json payload, which will be parsed In that task. for now I am sending it via cmaunda variable and the json is huge like 350 json object in it which is impacting database throwing exception as we can only store 4000 char in VARCHAR type .
So I decided to start it via uploading a file
so after you comment I saw that we cannot start a process like this

but in camunda invoice example it uses invoice to be uploaded right? how it is done ?

can you please help me in this ?

If you’re referring to this application invoice then you might want to take a look at the following documentation:

You can also play with it here: camunda-bpm-examples/spring-boot-starter/example-invoice at master · camunda/camunda-bpm-examples · GitHub

In my opinion (not necessarily correct), this is a bad practice to use such big uploads and it would be better to store big uploads somewhere and access them by some reference.

thank for your suggestion can you please suggest one more thing
like where can I store this type of huge json

There could be different approaches, for instance, storing the data in some database or some file storage service like AWS S3 / Azure Blob Storage / Google Cloud Storage.


ok thanks I will try this approach