{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/5866","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/5866/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/5866/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/5866/events","html_url":"https://github.com/elastic/elasticsearch/issues/5866","id":31786105,"number":5866,"title":"The scroll, clear scroll and analyze apis should support json in request body","user":{"login":"martijnvg","id":580421,"avatar_url":"https://avatars.githubusercontent.com/u/580421?v=3","gravatar_id":"","url":"https://api.github.com/users/martijnvg","html_url":"https://github.com/martijnvg","followers_url":"https://api.github.com/users/martijnvg/followers","following_url":"https://api.github.com/users/martijnvg/following{/other_user}","gists_url":"https://api.github.com/users/martijnvg/gists{/gist_id}","starred_url":"https://api.github.com/users/martijnvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martijnvg/subscriptions","organizations_url":"https://api.github.com/users/martijnvg/orgs","repos_url":"https://api.github.com/users/martijnvg/repos","events_url":"https://api.github.com/users/martijnvg/events{/privacy}","received_events_url":"https://api.github.com/users/martijnvg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:REST","name":":REST","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/adoptme","name":"adoptme","color":"207de5"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/enhancement","name":"enhancement","color":"4a4ea8"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"closed","locked":false,"assignee":{"login":"johtani","id":1142449,"avatar_url":"https://avatars.githubusercontent.com/u/1142449?v=3","gravatar_id":"","url":"https://api.github.com/users/johtani","html_url":"https://github.com/johtani","followers_url":"https://api.github.com/users/johtani/followers","following_url":"https://api.github.com/users/johtani/following{/other_user}","gists_url":"https://api.github.com/users/johtani/gists{/gist_id}","starred_url":"https://api.github.com/users/johtani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johtani/subscriptions","organizations_url":"https://api.github.com/users/johtani/orgs","repos_url":"https://api.github.com/users/johtani/repos","events_url":"https://api.github.com/users/johtani/events{/privacy}","received_events_url":"https://api.github.com/users/johtani/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2014-04-18T07:38:36Z","updated_at":"2015-04-22T09:11:33Z","closed_at":"2015-04-22T09:11:33Z","body":"The scroll, clear scroll and analyze apis are the only apis not accepting json, yaml etc in the request body. In order to be consistent with all the other apis they should support this. These apis just assume the scroll_id / text to analyze is specified as a string in the request body.\r\n\r\nSupporting json, yaml etc. can be done in bwc manner via content type sniffing and if the content type can't figured out then the request body is assumed to be consumed as a plain string."}}