{"action":"closed","issue":{"url":"https://api.github.com/repos/json-api/json-api/issues/556","labels_url":"https://api.github.com/repos/json-api/json-api/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/json-api/json-api/issues/556/comments","events_url":"https://api.github.com/repos/json-api/json-api/issues/556/events","html_url":"https://github.com/json-api/json-api/issues/556","id":68864994,"number":556,"title":"Please don't abuse HTTP PATCH.","user":{"login":"ben-crowhurst","id":3715287,"avatar_url":"https://avatars.githubusercontent.com/u/3715287?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-crowhurst","html_url":"https://github.com/ben-crowhurst","followers_url":"https://api.github.com/users/ben-crowhurst/followers","following_url":"https://api.github.com/users/ben-crowhurst/following{/other_user}","gists_url":"https://api.github.com/users/ben-crowhurst/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-crowhurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-crowhurst/subscriptions","organizations_url":"https://api.github.com/users/ben-crowhurst/orgs","repos_url":"https://api.github.com/users/ben-crowhurst/repos","events_url":"https://api.github.com/users/ben-crowhurst/events{/privacy}","received_events_url":"https://api.github.com/users/ben-crowhurst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-16T07:35:53Z","updated_at":"2015-04-23T03:36:43Z","closed_at":"2015-04-23T03:36:43Z","body":"\r\n**Implement a PATCH document with a different Media-Type**\r\n\r\n[RFC 5789](http://tools.ietf.org/html/rfc5789)\r\n>  The PATCH method requests that a set of changes described in the\r\n>   request entity be applied to the resource identified by the Request-\r\n>   URI.  **The set of changes is represented in a format called a \"patch\r\n>   document\" identified by a media type.**  If the Request-URI does not\r\n>   point to an existing resource, the server MAY create a new resource,\r\n>   depending on the patch document type (whether it can logically modify\r\n>   a null resource) and permissions, etc.\r\n\r\n**Implement a PATCH document**\r\n\r\n[RFC 5789](http://tools.ietf.org/html/rfc5789)\r\n>  The difference between the PUT and PATCH requests is reflected in the\r\n>   way the server processes the enclosed entity to modify the resource\r\n>  identified by the Request-URI.  In a PUT request, the enclosed entity\r\n>   is considered to be a modified version of the resource stored on the\r\n>   origin server, and the client is requesting that the stored version\r\n>   be replaced.  **With PATCH, however, the enclosed entity contains a set\r\n>   of instructions describing how a resource currently residing on the\r\n>   origin server should be modified to produce a new version.**  The PATCH\r\n>   method affects the resource identified by the Request-URI, and it\r\n>   also MAY have side effects on other resources; i.e., new resources\r\n>   may be created, or existing ones modified, by the application of a\r\n>   PATCH.\r\n\r\n[Please, don't PATCH like an idiot](http://williamdurand.fr/2014/02/14/please-do-not-patch-like-an-idiot/)"}}