function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Douglas MolinaDouglas Molina 

"case-sensitive" JSON Error on Trailhead - Data Integration Specialist Superbadge

Hi! 
I'm trying to implement the REST callout of this superbadge, but I'm receiving the error 400 "Bad Request. Your JSON does not contain the correct case-sensitive keys. Please reference the sample JSON."
I've already checked each of the keys case, even copied the exact same sample from trailhead, but this message keeps coming. Does anyone have a clue of what could be the problem here?

Here's what I'm trying: (the same behavior happens on both Apex/Postman)


Request/Response:
User-added image

Headers:
User-added image

Auth:User-added image

Thank you!
Best Answer chosen by Douglas Molina
Naresh AltokkNaresh Altokk
Hi,

Try this ==> Content-Type: application/json;charset=UTF-8

All Answers

Naresh AltokkNaresh Altokk
Hi,

Try this ==> Content-Type: application/json;charset=UTF-8
This was selected as the best answer
SwethaSwetha (Salesforce Developers) 
HI Douglas,
Recommend reviewing https://salesforce.stackexchange.com/questions/158195/trailhead-http-post-issue-json-does-not-contain-correct-case-sensitive-keys/224089

Trailhead Help (https://trailhead.salesforce.com/en/help?support=home)can provide assistance for situations where Trailhead does not appear to be functioning correctly. You can reach out to them if this is the case.

If this information helps, please mark the answer as best. Thank you
Douglas MolinaDouglas Molina
Thank you Naresh and Swetha!
The problem with that message was indeed the wrong content type. But after that, I only received status code 500 with no messages.
Today I resend that same request, with no changes at all, and It just worked, returning 201 and the corresponding success message.
Thanks!