Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.63 KB

ClassAttachmentCreation.md

File metadata and controls

30 lines (24 loc) · 1.63 KB

FlatApi::ClassAttachmentCreation

Properties

Name Type Description Notes
type String The type of the attachment posted: * `rich`, `photo`, `video` are attachment types that are automatically resolved from a `link` attachment. * A `flat` attachment is a score document where the unique identifier will be specified in the `score` property. Its sharing mode will be provided in the `sharingMode` property. [optional]
score String A unique Flat score identifier. The user creating the assignment must at least have read access to the document. If the user has admin rights, new group permissions will be automatically added for the teachers and students of the class. [optional]
worksheet String An unique worksheet identifier [optional]
sharing_mode MediaScoreSharingMode [optional][default to 'read']
lock_score_template Boolean To be used with a score attached in `sharingMode` `copy` (score used as template). If true, students won't be able to change the original notes of the template. [optional]
url String The URL of the attachment. [optional]
google_drive_file_id String The ID of the Google Drive File [optional]

Example

require 'flat_api'

instance = FlatApi::ClassAttachmentCreation.new(
  type: null,
  score: null,
  worksheet: null,
  sharing_mode: null,
  lock_score_template: null,
  url: null,
  google_drive_file_id: null
)