{"action":"opened","issue":{"url":"https://api.github.com/repos/typicode/json-server/issues/216","labels_url":"https://api.github.com/repos/typicode/json-server/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/typicode/json-server/issues/216/comments","events_url":"https://api.github.com/repos/typicode/json-server/issues/216/events","html_url":"https://github.com/typicode/json-server/issues/216","id":123454098,"number":216,"title":"Replace data on POST?","user":{"login":"hamishtaplin","id":930398,"avatar_url":"https://avatars.githubusercontent.com/u/930398?v=3","gravatar_id":"","url":"https://api.github.com/users/hamishtaplin","html_url":"https://github.com/hamishtaplin","followers_url":"https://api.github.com/users/hamishtaplin/followers","following_url":"https://api.github.com/users/hamishtaplin/following{/other_user}","gists_url":"https://api.github.com/users/hamishtaplin/gists{/gist_id}","starred_url":"https://api.github.com/users/hamishtaplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamishtaplin/subscriptions","organizations_url":"https://api.github.com/users/hamishtaplin/orgs","repos_url":"https://api.github.com/users/hamishtaplin/repos","events_url":"https://api.github.com/users/hamishtaplin/events{/privacy}","received_events_url":"https://api.github.com/users/hamishtaplin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-22T10:21:32Z","updated_at":"2015-12-22T10:21:32Z","closed_at":null,"body":"When setting up an endpoint, I want to be able to `post` a whole new set of data to my endpoint `/blocks/`. If I start with an empty JSON object like so:\r\n\r\n```json\r\n{\r\n  \"blocks\": [ ]\r\n}\r\n```\r\n\r\nand then `post` an array of objects, it will push an array into the blocks array like so:\r\n\r\n```json\r\n{\r\n  \"blocks\": [\r\n     [ {\r\n      \"title\": \"Dropdown Question\",\r\n      \"type\": \"dropdown-question\",\r\n      \"id\": 0\r\n    },\r\n    {\r\n      \"title\": \"Multiple Choice Single Answer\",\r\n      \"type\": \"multiple-choice-single-answer\",\r\n      \"id\": 1\r\n    } ]\r\n  ]\r\n}\r\n```\r\n\r\nFurther `post`s will keep appending more arrays to `blocks`. \r\n\r\nMy question is how can I just ***replace*** the value of `blocks`? So, on first `post` it will create the top-level array and further calls will replace that array?"}}