400 Response when making API calls

  • Updated

Issue

Requests to API POST and PUT endpoints results in a 400 (Bad Request) response.

Cause

One possible cause is that the double quotes used in the JSON contained in the body of the request (which per the JSON specification should be represented by the 0x22 ASCII character) have been inadvertently replaced with the unicode characters for left and right double quotes (0x201C and 0x201D, respectively).  This has been known to occur when sharing the JSON content via chat clients such as Slack which "prettify" content.

Resolution

Ensure that the double quotes as represented as ASCI 0x22.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request