{"action":"created","issue":{"url":"https://api.github.com/repos/dadi/api/issues/40","repository_url":"https://api.github.com/repos/dadi/api","labels_url":"https://api.github.com/repos/dadi/api/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/dadi/api/issues/40/comments","events_url":"https://api.github.com/repos/dadi/api/issues/40/events","html_url":"https://github.com/dadi/api/issues/40","id":141745450,"number":40,"title":"Bulk updating documents","user":{"login":"jimlambie","id":116263,"avatar_url":"https://avatars.githubusercontent.com/u/116263?v=3","gravatar_id":"","url":"https://api.github.com/users/jimlambie","html_url":"https://github.com/jimlambie","followers_url":"https://api.github.com/users/jimlambie/followers","following_url":"https://api.github.com/users/jimlambie/following{/other_user}","gists_url":"https://api.github.com/users/jimlambie/gists{/gist_id}","starred_url":"https://api.github.com/users/jimlambie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimlambie/subscriptions","organizations_url":"https://api.github.com/users/jimlambie/orgs","repos_url":"https://api.github.com/users/jimlambie/repos","events_url":"https://api.github.com/users/jimlambie/events{/privacy}","received_events_url":"https://api.github.com/users/jimlambie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dadi/api/labels/Feature%20request","name":"Feature request","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dadi/api/milestones/4","html_url":"https://github.com/dadi/api/milestones/1.5.0","labels_url":"https://api.github.com/repos/dadi/api/milestones/4/labels","id":1663831,"number":4,"title":"1.5.0","description":null,"creator":{"login":"jimlambie","id":116263,"avatar_url":"https://avatars.githubusercontent.com/u/116263?v=3","gravatar_id":"","url":"https://api.github.com/users/jimlambie","html_url":"https://github.com/jimlambie","followers_url":"https://api.github.com/users/jimlambie/followers","following_url":"https://api.github.com/users/jimlambie/following{/other_user}","gists_url":"https://api.github.com/users/jimlambie/gists{/gist_id}","starred_url":"https://api.github.com/users/jimlambie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimlambie/subscriptions","organizations_url":"https://api.github.com/users/jimlambie/orgs","repos_url":"https://api.github.com/users/jimlambie/repos","events_url":"https://api.github.com/users/jimlambie/events{/privacy}","received_events_url":"https://api.github.com/users/jimlambie/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-03-24T12:38:54Z","updated_at":"2016-03-24T13:24:26Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-03-18T00:57:41Z","updated_at":"2016-03-29T21:42:54Z","closed_at":null,"body":"It is currently possible to send an array of documents to the API for creation, but not to send an array of documents to be updated.\r\n\r\nCurrently to update a document the ID must be passed in the request URL and the update query as the body.\r\n\r\n```\r\nPOST /1.0/library/notices/1234 HTTP/1.1\r\nHost: api.example.com\r\ncontent-type: application/json\r\nAuthorization: Bearer 171c8c12-6e9b-47a8-be29-0524070b0c65\r\n\r\n{ \"status\": \"published\"  }\r\n```\r\n\r\nIt would be useful to allow sending an array of IDs to be updated:\r\n\r\n```\r\nPOST /1.0/library/notices/1234,5678,9012,3456 HTTP/1.1\r\nHost: api.example.com\r\ncontent-type: application/json\r\nAuthorization: Bearer 171c8c12-6e9b-47a8-be29-0524070b0c65\r\n\r\n{ \"status\": \"published\"  }\r\n```"},"comment":{"url":"https://api.github.com/repos/dadi/api/issues/comments/203123550","html_url":"https://github.com/dadi/api/issues/40#issuecomment-203123550","issue_url":"https://api.github.com/repos/dadi/api/issues/40","id":203123550,"user":{"login":"mingard","id":1352469,"avatar_url":"https://avatars.githubusercontent.com/u/1352469?v=3","gravatar_id":"","url":"https://api.github.com/users/mingard","html_url":"https://github.com/mingard","followers_url":"https://api.github.com/users/mingard/followers","following_url":"https://api.github.com/users/mingard/following{/other_user}","gists_url":"https://api.github.com/users/mingard/gists{/gist_id}","starred_url":"https://api.github.com/users/mingard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingard/subscriptions","organizations_url":"https://api.github.com/users/mingard/orgs","repos_url":"https://api.github.com/users/mingard/repos","events_url":"https://api.github.com/users/mingard/events{/privacy}","received_events_url":"https://api.github.com/users/mingard/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T21:42:54Z","updated_at":"2016-03-29T21:42:54Z","body":"https://docs.mongodb.org/manual/reference/method/Bulk.tojson/#Bulk.tojson"}}