Attachment
attachment_created
Definition: The event is emitted anytime a new file is uploaded by an end user or API request.
Trigger: Triggered anytime a file is uploaded into a course or user file directory.
Payload Example:
Event Body Schema
attachment_id
The Canvas id of the attachment.
content_type
The attached files mime-type.
context_id
The id of the context the attachment is used in.
context_type
The type of context the attachment is used in.
display_name
The display name of the attachment. NOTE: This field will be truncated to only include the first 8192 characters.
filename
The file name of the attachment. NOTE: This field will be truncated to only include the first 8192 characters.
folder_id
The id of the folder where the attachment was saved.
lock_at
The lock date (attachment is locked after this date).
unlock_at
The unlock date (attachment is unlocked after this date).
updated_at
The time at which this attachment was last modified in any way.
user_id
The Canvas id of the user associated with the attachment.
attachment_deleted
Definition: The event is emitted anytime a file is removed by an end user or API request.
Trigger: Triggered anytime a file is deleted from a course or user file directory.
Payload Example:
Event Body Schema
attachment_id
The Canvas id of the attachment.
content_type
The attached files mime-type.
context_id
The id of the context the attachment is used in.
context_type
The type of context the attachment is used in.
display_name
The display name of the attachment. NOTE: This field will be truncated to only include the first 8192 characters.
filename
The file name of the attachment. NOTE: This field will be truncated to only include the first 8192 characters.
folder_id
The id of the folder where the attachment was saved.
lock_at
The lock date (attachment is locked after this date).
unlock_at
The unlock date (attachment is unlocked after this date).
updated_at
The time at which this attachment was last modified in any way.
user_id
The Canvas id of the user associated with the attachment.
attachment_updated
Definition: The event is emitted anytime a file is updated by an end user or API request. Only changes to the fields included in the body of the event payload will emit the updated
event.
Trigger: Triggered anytime a file is updated in a course or user file directory.
Payload Example:
Event Body Schema
attachment_id
The Canvas id of the attachment.
content_type
The attached files mime-type.
context_id
The id of the context the attachment is used in.
context_type
The type of context the attachment is used in.
display_name
The display name of the attachment. NOTE: This field will be truncated to only include the first 8192 characters.
filename
The file name of the attachment. NOTE: This field will be truncated to only include the first 8192 characters.
folder_id
The id of the folder where the attachment was saved.
lock_at
The lock date (attachment is locked after this date).
unlock_at
The unlock date (attachment is unlocked after this date).
updated_at
The time at which this attachment was last modified in any way.
user_id
The Canvas id of the user associated with the attachment.
old_display_name
The old display name of the attachment. NOTE: This field will be truncated to only include the first 8192 characters.
This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated