415 Unsupported Media Type When Sending JSON in Request Body

415 Unsupported Media Type When Sending JSON in Request Body

Hi,
I have been trying to interact with the API to create a folder under the team folders. I tested it with Insomnia REST client it works very well with the example request structure from your docs.

However, I am trying to integrate a work backend with your API, using the same structure as JSON and I keep getting a 415 UNSUPPORTED MEDIA TYPE ERROR. For reference here is my code snippet:

Even when I set the 'Content-Type' header to 'application/json' it still fails. I am wondering what is causing this. I have tried with different media types and all have failed. So how do I go about this?


Waiting for your response.
Kind Regards,
-- martin