Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

trestclient content-type

Hi everyone, 

I have issues using the tRestClient in PATCH mode.

My API is only accepting the content-type "application/merge-patch+json" and give me this anwser when i run my job:

The content-type 'application/json' is not supported. Supported MIME types are 'application/merge-patch+json'

0683p000009M9mu.jpg

 

I tried to put this option into the advanced settings but it changes nothing. Any idea?

0683p000009M9mz.jpg

 

Regards,

Romain

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
In fact, i tried everything except the one that works : « Content-Type »

It needs to have both first letter in upper case to work

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Can you try setting your header name to "content-type" instead of "Content-type"? What you are doing should work, but I suspect that the header name is written with a different case and is therefore not overwriting the "content-type" that is being set by the component's drop down.

Headers should be case insensitive, so this would be a bug if this is the cause. Can you let me know what happens?

 

Regards

 

Richard

Anonymous
Not applicable
Author

Hi,
In fact, i tried everything except the one that works : « Content-Type »

It needs to have both first letter in upper case to work
Anonymous
Not applicable
Author

Thanks @RomainG.

 

I did a quick test at my end to see how the Content-Type header was being stored inside the tRestClient's code. It looked like it was being stored as "content-type". I'm glad you have got this sorted and I will raise this as a bug

 

Regards

 

Richard