Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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'
I tried to put this option into the advanced settings but it changes nothing. Any idea?
Regards,
Romain
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
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