Assignment
Input parameters
Message | |||
Name | Description | Type | M/O |
Files | List of attached files | List<File> | M/O |
Text | The assignment text | Text | M/O |
File | |||
---|---|---|---|
Name | Description | Type | M/O |
Id | Unique identificator of file (usually file name on disk or cloud document identifier)
|
| M |
IsTemplate | Flag, indicating that this file should be used as a template for students (Make a copy for each student) | Boolean | O (Default: false) |
Name | File name | Text | M |
Provider | The name of file provider. Available options:
| String | O (Default: Default) |
Content example
Create Extension Instance content
<
AssignmentContent
>
<
Text
>Hello wordl!!!</
Text
>
</
AssignmentContent
>
Content example with files
Create Extension Instance content
<
AssignmentContent
>
<
Files
>
<
File
>
<
Id
>0f0073ad-e4c6-4b1d-b29a-880601efbe8f</
Id
>
<
Name
>Hello world.docx</
Name
>
</
File
>
<
File
>
<
Id
>1a7595ac-1ccd-4155-89f4-3c4cf2cb1b02</
Id
>
<
Name
>Some PDF.pdf</
Name
>
</
File
>
<
File
>
<
Id
>0B60-9QvX5m73OE54LXRoLWhERGs</
Id
>
<
IsTemplate
>true</
IsTemplate
>
<
Name
>Some PDF.pdf</
Name
>
<
Provider
>GoogleDrive</
Provider
>
</
File
>
</
Files
>
<
Text
>Hello wordl!!!</
Text
>
</
AssignmentContent
>
Errors
File GUID is not in assignment extension - {GUID}
File GUID is missing - incorrect GUID, file not uploaded - {GUID}
File GUID is used in another assignment - {GUID}
File GUID is duplicated - {GUID}
- File name is empty - {GUID}
- File provider - {Provider} not supported
- File ID is not provided for {Count} cloud file entries
- File with ID {Id} is not valid
- Access denied for specified file with ID {Id}
- Unrecognized Guid format
- Only one file can be marked as template file
- IsTemplate option is not supported for file {id} provided by {Provider}
- Invalid file with ID {Id}: {Details}