Frequently Asked Questions

Why am I getting a 406/415 error?

Clients and servers MUST send all JSON payloads using the JSON media type in the Content-Type header.

POST /articles/1/relationships/comments HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  "data": [
    { "type": "comments", "id": "123" }
  ]
}