Mandatory elements & behaviour

Content-Type defines the request format. Accept defines a list of acceptable response formats.

  • An API that accepts JSON encoded POST, PUT & PATCH requests should also require the Content-Type header be set to application/json or throw a 415 Unsupported Media Type HTTP status code.

Last updated