{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8541","repository_url":"https://api.github.com/repos/mattermost/mattermost-server","labels_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8541/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8541/comments","events_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8541/events","html_url":"https://github.com/mattermost/mattermost-server/issues/8541","id":309542349,"number":8541,"title":"[Help Wanted] [MM-9990] Add support to REST API for sending ephemeral messages to users","user":{"login":"esethna","id":14333569,"avatar_url":"https://avatars3.githubusercontent.com/u/14333569?v=4","gravatar_id":"","url":"https://api.github.com/users/esethna","html_url":"https://github.com/esethna","followers_url":"https://api.github.com/users/esethna/followers","following_url":"https://api.github.com/users/esethna/following{/other_user}","gists_url":"https://api.github.com/users/esethna/gists{/gist_id}","starred_url":"https://api.github.com/users/esethna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esethna/subscriptions","organizations_url":"https://api.github.com/users/esethna/orgs","repos_url":"https://api.github.com/users/esethna/repos","events_url":"https://api.github.com/users/esethna/events{/privacy}","received_events_url":"https://api.github.com/users/esethna/received_events","type":"User","site_admin":false},"labels":[{"id":472666699,"url":"https://api.github.com/repos/mattermost/mattermost-server/labels/Difficulty:%20Intermediate","name":"Difficulty: Intermediate","color":"bfdadc","default":false},{"id":486848485,"url":"https://api.github.com/repos/mattermost/mattermost-server/labels/Go","name":"Go","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-28T21:41:41Z","updated_at":"2018-04-17T22:19:07Z","closed_at":"2018-04-17T22:19:07Z","author_association":"CONTRIBUTOR","body":"If you're interested please comment here and come [join our \"Contributors\" community channel](https://pre-release.mattermost.com/core/channels/tickets) on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please  [join our \"Developers\" community channel](https://pre-release.mattermost.com/core/channels/developers).\r\n\r\nNew contributors please see our [Developer's Guide](https://docs.mattermost.com/guides/developer.html), specifically for [machine setup](https://docs.mattermost.com/developer/developer-setup.html) and for [developer workflow](https://docs.mattermost.com/developer/developer-flow.html).\r\n\r\n----\r\n\r\n**Notes**: [Jira ticket](https://mattermost.atlassian.net/browse/MM-9990)\r\n\r\nIt would be useful for bots and integrations to be able to send ephemeral messages to users by using the REST API.\r\n\r\nFor this ticket, you'll need to do a few things:\r\n \r\n1. Add a new permission controlling who can send ephemeral messages to a user and give it to system admins\r\n2. Modify the `POST /api/v4/posts` endpoint to accept `system_ephemeral` as a post type, check the new permission and send the ephemeral post (instead of going through the regular post creation flow)\r\n3. Add API documentation detailing the changes to https://github.com/mattermost/mattermost-api-reference\r\n\r\nIf you have any questions, please ask Joram (@joram on pre-release and @jwilander on GitHub).\r\n"},"comment":{"url":"https://api.github.com/repos/mattermost/mattermost-server/issues/comments/382173737","html_url":"https://github.com/mattermost/mattermost-server/issues/8541#issuecomment-382173737","issue_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/8541","id":382173737,"user":{"login":"jwilander","id":2672098,"avatar_url":"https://avatars0.githubusercontent.com/u/2672098?v=4","gravatar_id":"","url":"https://api.github.com/users/jwilander","html_url":"https://github.com/jwilander","followers_url":"https://api.github.com/users/jwilander/followers","following_url":"https://api.github.com/users/jwilander/following{/other_user}","gists_url":"https://api.github.com/users/jwilander/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilander/subscriptions","organizations_url":"https://api.github.com/users/jwilander/orgs","repos_url":"https://api.github.com/users/jwilander/repos","events_url":"https://api.github.com/users/jwilander/events{/privacy}","received_events_url":"https://api.github.com/users/jwilander/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T22:19:07Z","updated_at":"2018-04-17T22:19:07Z","author_association":"CONTRIBUTOR","body":"Fixed by #8611"}}
{"actor":{"display_login":"jwilander"}}