{"action":"created","comment":{"url":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/comments/75895911","id":75895911,"diff_hunk":"@@ -286,3 +286,45 @@ by `asset_type` and `asset_id`.\n | `body` | The content of the submission, if it was submitted directly in a text field. (possibly truncated) |\n | `url` | The URL of the submission (for 'online_url' submissions) |\n | `attempt` | This is the submission attempt number.|\n+\n+#### `attachment_created`\n+\n+| Field | Description |\n+| ----- | ----------- |\n+| `user_id` | The Canvas id of the user associated with the attachment. |\n+| `attachment_id` | The Canvas id of the new attachment. |\n+| `display_name` | The display name of the attachment (possibly truncated). |\n+| `filename` | The file name of the attachment (possibly truncated). |\n+| `hidden` | Whether the file is flagged as hidden |\n+| `unlock_at` | The unlock date (attachment is unlocked after this date) |\n+| `lock_at` | The lock date (attachment is locked after this date) |\n+| `updated_at` | The time at which this attachment was last modified in any way |\n+\n+#### `attachment_updated`\n+\n+`attachment_updated` events are triggered when an attachment's `display_name` is updated.\n+\n+| Field | Description |\n+| ----- | ----------- |\n+| `user_id` | The Canvas id of the user associated with the attachment. |\n+| `attachment_id` | The Canvas id of the new attachment. |\n+| `display_name` | The display name of the attachment (possibly truncated). |\n+| `old_display_name` | The old display name of the attachment (possibly truncated). |","path":"doc/api/live_events.md","position":27,"original_position":27,"commit_id":"997f117954298233b50427ed3d81641bd8a74108","original_commit_id":"997f117954298233b50427ed3d81641bd8a74108","user":{"login":"simong","id":92180,"avatar_url":"https://avatars.githubusercontent.com/u/92180?v=3","gravatar_id":"","url":"https://api.github.com/users/simong","html_url":"https://github.com/simong","followers_url":"https://api.github.com/users/simong/followers","following_url":"https://api.github.com/users/simong/following{/other_user}","gists_url":"https://api.github.com/users/simong/gists{/gist_id}","starred_url":"https://api.github.com/users/simong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simong/subscriptions","organizations_url":"https://api.github.com/users/simong/orgs","repos_url":"https://api.github.com/users/simong/repos","events_url":"https://api.github.com/users/simong/events{/privacy}","received_events_url":"https://api.github.com/users/simong/received_events","type":"User","site_admin":false},"body":"`old` seems to be consistent with the wiki pages?","created_at":"2016-08-23T15:55:02Z","updated_at":"2016-08-23T15:55:02Z","html_url":"https://github.com/fronteerio/canvas-lms/pull/3#discussion_r75895911","pull_request_url":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/comments/75895911"},"html":{"href":"https://github.com/fronteerio/canvas-lms/pull/3#discussion_r75895911"},"pull_request":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/3","id":82383982,"html_url":"https://github.com/fronteerio/canvas-lms/pull/3","diff_url":"https://github.com/fronteerio/canvas-lms/pull/3.diff","patch_url":"https://github.com/fronteerio/canvas-lms/pull/3.patch","issue_url":"https://api.github.com/repos/fronteerio/canvas-lms/issues/3","number":3,"state":"open","locked":false,"title":"added live events for attachments + pages fix","user":{"login":"simong","id":92180,"avatar_url":"https://avatars.githubusercontent.com/u/92180?v=3","gravatar_id":"","url":"https://api.github.com/users/simong","html_url":"https://github.com/simong","followers_url":"https://api.github.com/users/simong/followers","following_url":"https://api.github.com/users/simong/following{/other_user}","gists_url":"https://api.github.com/users/simong/gists{/gist_id}","starred_url":"https://api.github.com/users/simong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simong/subscriptions","organizations_url":"https://api.github.com/users/simong/orgs","repos_url":"https://api.github.com/users/simong/repos","events_url":"https://api.github.com/users/simong/events{/privacy}","received_events_url":"https://api.github.com/users/simong/received_events","type":"User","site_admin":false},"body":"test plan:\r\n  * create attachments by uploading course files\r\n  * update display name of course files\r\n  * delete some course files\r\n  * delete a course wiki page\r\n  * ensure appropriate messages are in the kinesis queue","created_at":"2016-08-23T15:12:30Z","updated_at":"2016-08-23T15:55:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51b80329144deb813159b3b63e97ecf43e238bdb","assignee":{"login":"simong","id":92180,"avatar_url":"https://avatars.githubusercontent.com/u/92180?v=3","gravatar_id":"","url":"https://api.github.com/users/simong","html_url":"https://github.com/simong","followers_url":"https://api.github.com/users/simong/followers","following_url":"https://api.github.com/users/simong/following{/other_user}","gists_url":"https://api.github.com/users/simong/gists{/gist_id}","starred_url":"https://api.github.com/users/simong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simong/subscriptions","organizations_url":"https://api.github.com/users/simong/orgs","repos_url":"https://api.github.com/users/simong/repos","events_url":"https://api.github.com/users/simong/events{/privacy}","received_events_url":"https://api.github.com/users/simong/received_events","type":"User","site_admin":false},"assignees":[{"login":"simong","id":92180,"avatar_url":"https://avatars.githubusercontent.com/u/92180?v=3","gravatar_id":"","url":"https://api.github.com/users/simong","html_url":"https://github.com/simong","followers_url":"https://api.github.com/users/simong/followers","following_url":"https://api.github.com/users/simong/following{/other_user}","gists_url":"https://api.github.com/users/simong/gists{/gist_id}","starred_url":"https://api.github.com/users/simong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simong/subscriptions","organizations_url":"https://api.github.com/users/simong/orgs","repos_url":"https://api.github.com/users/simong/repos","events_url":"https://api.github.com/users/simong/events{/privacy}","received_events_url":"https://api.github.com/users/simong/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/3/commits","review_comments_url":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/3/comments","review_comment_url":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fronteerio/canvas-lms/issues/3/comments","statuses_url":"https://api.github.com/repos/fronteerio/canvas-lms/statuses/997f117954298233b50427ed3d81641bd8a74108","head":{"label":"fronteerio:liveevents-files","ref":"liveevents-files","sha":"997f117954298233b50427ed3d81641bd8a74108","user":{"login":"fronteerio","id":9116505,"avatar_url":"https://avatars.githubusercontent.com/u/9116505?v=3","gravatar_id":"","url":"https://api.github.com/users/fronteerio","html_url":"https://github.com/fronteerio","followers_url":"https://api.github.com/users/fronteerio/followers","following_url":"https://api.github.com/users/fronteerio/following{/other_user}","gists_url":"https://api.github.com/users/fronteerio/gists{/gist_id}","starred_url":"https://api.github.com/users/fronteerio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fronteerio/subscriptions","organizations_url":"https://api.github.com/users/fronteerio/orgs","repos_url":"https://api.github.com/users/fronteerio/repos","events_url":"https://api.github.com/users/fronteerio/events{/privacy}","received_events_url":"https://api.github.com/users/fronteerio/received_events","type":"Organization","site_admin":false},"repo":{"id":57421343,"name":"canvas-lms","full_name":"fronteerio/canvas-lms","owner":{"login":"fronteerio","id":9116505,"avatar_url":"https://avatars.githubusercontent.com/u/9116505?v=3","gravatar_id":"","url":"https://api.github.com/users/fronteerio","html_url":"https://github.com/fronteerio","followers_url":"https://api.github.com/users/fronteerio/followers","following_url":"https://api.github.com/users/fronteerio/following{/other_user}","gists_url":"https://api.github.com/users/fronteerio/gists{/gist_id}","starred_url":"https://api.github.com/users/fronteerio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fronteerio/subscriptions","organizations_url":"https://api.github.com/users/fronteerio/orgs","repos_url":"https://api.github.com/users/fronteerio/repos","events_url":"https://api.github.com/users/fronteerio/events{/privacy}","received_events_url":"https://api.github.com/users/fronteerio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fronteerio/canvas-lms","description":"The open LMS by Instructure, Inc.","fork":true,"url":"https://api.github.com/repos/fronteerio/canvas-lms","forks_url":"https://api.github.com/repos/fronteerio/canvas-lms/forks","keys_url":"https://api.github.com/repos/fronteerio/canvas-lms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fronteerio/canvas-lms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fronteerio/canvas-lms/teams","hooks_url":"https://api.github.com/repos/fronteerio/canvas-lms/hooks","issue_events_url":"https://api.github.com/repos/fronteerio/canvas-lms/issues/events{/number}","events_url":"https://api.github.com/repos/fronteerio/canvas-lms/events","assignees_url":"https://api.github.com/repos/fronteerio/canvas-lms/assignees{/user}","branches_url":"https://api.github.com/repos/fronteerio/canvas-lms/branches{/branch}","tags_url":"https://api.github.com/repos/fronteerio/canvas-lms/tags","blobs_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/refs{/sha}","trees_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fronteerio/canvas-lms/statuses/{sha}","languages_url":"https://api.github.com/repos/fronteerio/canvas-lms/languages","stargazers_url":"https://api.github.com/repos/fronteerio/canvas-lms/stargazers","contributors_url":"https://api.github.com/repos/fronteerio/canvas-lms/contributors","subscribers_url":"https://api.github.com/repos/fronteerio/canvas-lms/subscribers","subscription_url":"https://api.github.com/repos/fronteerio/canvas-lms/subscription","commits_url":"https://api.github.com/repos/fronteerio/canvas-lms/commits{/sha}","git_commits_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/commits{/sha}","comments_url":"https://api.github.com/repos/fronteerio/canvas-lms/comments{/number}","issue_comment_url":"https://api.github.com/repos/fronteerio/canvas-lms/issues/comments{/number}","contents_url":"https://api.github.com/repos/fronteerio/canvas-lms/contents/{+path}","compare_url":"https://api.github.com/repos/fronteerio/canvas-lms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fronteerio/canvas-lms/merges","archive_url":"https://api.github.com/repos/fronteerio/canvas-lms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fronteerio/canvas-lms/downloads","issues_url":"https://api.github.com/repos/fronteerio/canvas-lms/issues{/number}","pulls_url":"https://api.github.com/repos/fronteerio/canvas-lms/pulls{/number}","milestones_url":"https://api.github.com/repos/fronteerio/canvas-lms/milestones{/number}","notifications_url":"https://api.github.com/repos/fronteerio/canvas-lms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fronteerio/canvas-lms/labels{/name}","releases_url":"https://api.github.com/repos/fronteerio/canvas-lms/releases{/id}","deployments_url":"https://api.github.com/repos/fronteerio/canvas-lms/deployments","created_at":"2016-04-30T01:03:36Z","updated_at":"2016-04-30T01:04:01Z","pushed_at":"2016-08-23T15:12:30Z","git_url":"git://github.com/fronteerio/canvas-lms.git","ssh_url":"git@github.com:fronteerio/canvas-lms.git","clone_url":"https://github.com/fronteerio/canvas-lms.git","svn_url":"https://github.com/fronteerio/canvas-lms","homepage":"https://github.com/instructure/canvas-lms/wiki","size":251219,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"stable"}},"base":{"label":"fronteerio:stable","ref":"stable","sha":"96a784fb3f4907f41ca6c222a7f5c3f5ebf55ca7","user":{"login":"fronteerio","id":9116505,"avatar_url":"https://avatars.githubusercontent.com/u/9116505?v=3","gravatar_id":"","url":"https://api.github.com/users/fronteerio","html_url":"https://github.com/fronteerio","followers_url":"https://api.github.com/users/fronteerio/followers","following_url":"https://api.github.com/users/fronteerio/following{/other_user}","gists_url":"https://api.github.com/users/fronteerio/gists{/gist_id}","starred_url":"https://api.github.com/users/fronteerio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fronteerio/subscriptions","organizations_url":"https://api.github.com/users/fronteerio/orgs","repos_url":"https://api.github.com/users/fronteerio/repos","events_url":"https://api.github.com/users/fronteerio/events{/privacy}","received_events_url":"https://api.github.com/users/fronteerio/received_events","type":"Organization","site_admin":false},"repo":{"id":57421343,"name":"canvas-lms","full_name":"fronteerio/canvas-lms","owner":{"login":"fronteerio","id":9116505,"avatar_url":"https://avatars.githubusercontent.com/u/9116505?v=3","gravatar_id":"","url":"https://api.github.com/users/fronteerio","html_url":"https://github.com/fronteerio","followers_url":"https://api.github.com/users/fronteerio/followers","following_url":"https://api.github.com/users/fronteerio/following{/other_user}","gists_url":"https://api.github.com/users/fronteerio/gists{/gist_id}","starred_url":"https://api.github.com/users/fronteerio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fronteerio/subscriptions","organizations_url":"https://api.github.com/users/fronteerio/orgs","repos_url":"https://api.github.com/users/fronteerio/repos","events_url":"https://api.github.com/users/fronteerio/events{/privacy}","received_events_url":"https://api.github.com/users/fronteerio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fronteerio/canvas-lms","description":"The open LMS by Instructure, Inc.","fork":true,"url":"https://api.github.com/repos/fronteerio/canvas-lms","forks_url":"https://api.github.com/repos/fronteerio/canvas-lms/forks","keys_url":"https://api.github.com/repos/fronteerio/canvas-lms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fronteerio/canvas-lms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fronteerio/canvas-lms/teams","hooks_url":"https://api.github.com/repos/fronteerio/canvas-lms/hooks","issue_events_url":"https://api.github.com/repos/fronteerio/canvas-lms/issues/events{/number}","events_url":"https://api.github.com/repos/fronteerio/canvas-lms/events","assignees_url":"https://api.github.com/repos/fronteerio/canvas-lms/assignees{/user}","branches_url":"https://api.github.com/repos/fronteerio/canvas-lms/branches{/branch}","tags_url":"https://api.github.com/repos/fronteerio/canvas-lms/tags","blobs_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/refs{/sha}","trees_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fronteerio/canvas-lms/statuses/{sha}","languages_url":"https://api.github.com/repos/fronteerio/canvas-lms/languages","stargazers_url":"https://api.github.com/repos/fronteerio/canvas-lms/stargazers","contributors_url":"https://api.github.com/repos/fronteerio/canvas-lms/contributors","subscribers_url":"https://api.github.com/repos/fronteerio/canvas-lms/subscribers","subscription_url":"https://api.github.com/repos/fronteerio/canvas-lms/subscription","commits_url":"https://api.github.com/repos/fronteerio/canvas-lms/commits{/sha}","git_commits_url":"https://api.github.com/repos/fronteerio/canvas-lms/git/commits{/sha}","comments_url":"https://api.github.com/repos/fronteerio/canvas-lms/comments{/number}","issue_comment_url":"https://api.github.com/repos/fronteerio/canvas-lms/issues/comments{/number}","contents_url":"https://api.github.com/repos/fronteerio/canvas-lms/contents/{+path}","compare_url":"https://api.github.com/repos/fronteerio/canvas-lms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fronteerio/canvas-lms/merges","archive_url":"https://api.github.com/repos/fronteerio/canvas-lms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fronteerio/canvas-lms/downloads","issues_url":"https://api.github.com/repos/fronteerio/canvas-lms/issues{/number}","pulls_url":"https://api.github.com/repos/fronteerio/canvas-lms/pulls{/number}","milestones_url":"https://api.github.com/repos/fronteerio/canvas-lms/milestones{/number}","notifications_url":"https://api.github.com/repos/fronteerio/canvas-lms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fronteerio/canvas-lms/labels{/name}","releases_url":"https://api.github.com/repos/fronteerio/canvas-lms/releases{/id}","deployments_url":"https://api.github.com/repos/fronteerio/canvas-lms/deployments","created_at":"2016-04-30T01:03:36Z","updated_at":"2016-04-30T01:04:01Z","pushed_at":"2016-08-23T15:12:30Z","git_url":"git://github.com/fronteerio/canvas-lms.git","ssh_url":"git@github.com:fronteerio/canvas-lms.git","clone_url":"https://github.com/fronteerio/canvas-lms.git","svn_url":"https://github.com/fronteerio/canvas-lms","homepage":"https://github.com/instructure/canvas-lms/wiki","size":251219,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"stable"}},"_links":{"self":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/3"},"html":{"href":"https://github.com/fronteerio/canvas-lms/pull/3"},"issue":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/issues/3"},"comments":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/fronteerio/canvas-lms/statuses/997f117954298233b50427ed3d81641bd8a74108"}}}}
{"actor":{"display_login":"simong"}}