API facing issues

Raw response for the API
Status code 406
{“data”:null,“error”:{“code”:406,“message”:“The Patch API only supports JSON responses, you requested ‘text/html’. Please set your ‘Accept’ header to ‘application/json’ or leave it blank”},“meta”:null,“success”:false}



Please help in this issue.

You need to add a header on the call: Content-Type: application/json

Hi Adam,

Very thanks for the help. But still I am facing the same error even after adding Header.


You need to set the Data type to ‘json’ (top right dropdown).

HI Adam, Still the same problem persist.


Add header
Accept: application/json

3 Likes

Hi Jici,

Very thanks for the help.

Now it is working Fine.

Thanks.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.