For Developers

Attachment

An Attachment can be associated with an Assignment, Announcement, Page, or Submission. Attachments typically includes supporting info, like files including instructions, or a link to relevant content that might be useful to the assignee.

Attachments are not a model in their own right. When you see the word Attachment referenced throughout the documentation, it is referring to one of the following models:

ModelDescriptionRead-only
FileA file uploaded to the source system.✅
TextA text body. Can be HTML or plaintext.
ExternalLinkA URL to an external resource.
ExternalToolA URL to an external tool (LTI).
DiscussionA discussion topic.✅
AssessmentA quiz or assessment.✅

Properties

The one property that all attachments have in common is type.

PropertyTypeDescription
typeAttachmentTypeThe type of the attachment (e.g. file).

Each type of attachment has additional properties that are specific to that type. Click on the type name in the table above to see the additional properties for that type.

Supported Submission Attachment Types Per LMS

The following table lists which attachments are supported by the Edlink API for each supported LMS.

LMSSupported Attachment Types (Read)Supported Attachment Types (Write)
Blackboardtexttext
Brightspacefile (1)text (1)
Canvasfile, link, lti, textlink, lti, text
Googlelinklink
Moodletextlink (2), text
Schoologylinklink (3), text
  1. Brightspace will convert the text attachment to a file attachment.
  2. Link attachments will be converted to Text attachment where the link URL will be interpreted as text.
  3. Link attachments will be converted to Text attachments if the User API V2 - autofix submission type (Schoology) feature flag is turned on. If the feature flag is turned off the request will throw an error.

Downloadable Attachments

File attachments can be downloaded from the LMS. This includes files that are attached to assignments or submission attempts. Currently, Edlink only supports the downloading of files from Canvas & Schoology.