GET restapi/personal/assignments/{elementId}/answers/{answerId}/assessments/files/v1

Get info about files attached to assessment.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
elementId

Assignment element ID.

integer

Required

answerId

Answer the assessment is related to.

integer

Required

Body Parameters

None.

Response Information

Resource Description

List of

Collection of Itsolutions.Itslearning.Web.RestApi.Personal.Assignment.Responses.AssignmentFileModel
NameDescriptionTypeAdditional information
FileId

The unique ID of the file.

integer

None.

FileRepoId

File repo ID.

string

None.

Name

Name of the file, including the extension.

string

None.

MimeType

File MIME type.

string

None.

Size

Size of the file in bytes. Only applicable for files stored in the file repository.

integer, 64 bit

None.

LastModified

When the file was last modified, useful for clients that can cache a file in a secure way. Only applicable for files stored in the file repository.

date

None.

DownloadAsAttachment

Defines whether current file cannot be previewed in a new browser tab and should rather be downloaded as attachment.

boolean

None.

SignedFileRepoId

Signed file repo identifier.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "FileId": 1,
    "FileRepoId": "sample string 2",
    "Name": "sample string 3",
    "MimeType": "sample string 4",
    "Size": 1,
    "LastModified": "2026-08-13T06:57:23Z",
    "DownloadAsAttachment": true,
    "SignedFileRepoId": "sample string 6"
  },
  {
    "FileId": 1,
    "FileRepoId": "sample string 2",
    "Name": "sample string 3",
    "MimeType": "sample string 4",
    "Size": 1,
    "LastModified": "2026-08-13T06:57:23Z",
    "DownloadAsAttachment": true,
    "SignedFileRepoId": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAssignmentFileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.Assignment.Responses">
  <AssignmentFileModel>
    <DownloadAsAttachment>true</DownloadAsAttachment>
    <FileId>1</FileId>
    <FileRepoId>sample string 2</FileRepoId>
    <LastModified>2026-08-13T06:57:23Z</LastModified>
    <MimeType>sample string 4</MimeType>
    <Name>sample string 3</Name>
    <SignedFileRepoId>sample string 6</SignedFileRepoId>
    <Size>1</Size>
  </AssignmentFileModel>
  <AssignmentFileModel>
    <DownloadAsAttachment>true</DownloadAsAttachment>
    <FileId>1</FileId>
    <FileRepoId>sample string 2</FileRepoId>
    <LastModified>2026-08-13T06:57:23Z</LastModified>
    <MimeType>sample string 4</MimeType>
    <Name>sample string 3</Name>
    <SignedFileRepoId>sample string 6</SignedFileRepoId>
    <Size>1</Size>
  </AssignmentFileModel>
</ArrayOfAssignmentFileModel>