Attachment creation for an assignment or stream post. This attachment must contain a score or a url; its details are resolved and returned as a MediaAttachment once the assignment or stream post is created.
| Name | Type | Description | Notes |
|---|---|---|---|
| type | str | 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 | str | 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 | str | A unique worksheet identifier | [optional] |
| revision | str | A unique revision identifier of a score | [optional] |
| part_uuid | str | The UUID of the instrument part selected for this attachment (for performance submissions) | [optional] |
| sharing_mode | MediaScoreSharingMode | [optional] [default to MediaScoreSharingMode.READ] | |
| lock_score_template | bool | 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 | str | The URL of the attachment. | [optional] |
| google_drive_file_id | str | The ID of the Google Drive File | [optional] |
| teacher_only | bool | Flag indicating if this attachment should only be visible to teachers | [optional] [default to False] |
from flat_api.models.class_attachment_creation import ClassAttachmentCreation
# TODO update the JSON string below
json = "{}"
# create an instance of ClassAttachmentCreation from a JSON string
class_attachment_creation_instance = ClassAttachmentCreation.from_json(json)
# print the JSON string representation of the object
print(ClassAttachmentCreation.to_json())
# convert the object into a dict
class_attachment_creation_dict = class_attachment_creation_instance.to_dict()
# create an instance of ClassAttachmentCreation from a dict
class_attachment_creation_from_dict = ClassAttachmentCreation.from_dict(class_attachment_creation_dict)