GET restapi/personal/assignments/{elementId}/answers/{answerId}/v1
Get assignment answer for an assignment
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
elementId |
The elementId for the assignment, unique in scope of a customer. |
integer |
Required |
answerId |
The answerId |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
when request was successful (200 - ok)
403 - Forbidden when user does not have access to the assignment answer
Itsolutions.Itslearning.Web.RestApi.Personal.Assignment.Responses.AssignmentAnswerResponseName | Description | Type | Additional information |
---|---|---|---|
AnswerId |
The unique identifier for the answer to the assignment. |
integer |
None. |
IsDraft |
True if the answer is a draft. |
boolean |
None. |
Submitted |
The time when answer was submitted, or last modified in case of a draft. |
date |
None. |
Text |
The text of the answer, which may contain HTML. |
string |
None. |
Files |
The files attached to the answer. |
Collection of Itslearning.Applications.Assignment.RestApi.Models.FileModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "AnswerId": 1, "IsDraft": true, "Submitted": "2025-08-21T14:37:59Z", "Text": "sample string 4", "Files": [ { "FileRepoId": "sample string 1", "Name": "sample string 2", "Size": 3, "LastModified": "2025-08-21T14:37:59Z", "DownloadUrl": "sample string 5", "DownloadUrlExpires": "2025-08-21T14:37:59Z" }, { "FileRepoId": "sample string 1", "Name": "sample string 2", "Size": 3, "LastModified": "2025-08-21T14:37:59Z", "DownloadUrl": "sample string 5", "DownloadUrlExpires": "2025-08-21T14:37:59Z" } ] }
application/xml, text/xml
Sample:
<AssignmentAnswerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.Assignment.Responses"> <AnswerId>1</AnswerId> <Files xmlns:d2p1="http://schemas.datacontract.org/2004/07/Itslearning.Applications.Assignment.RestApi.Models"> <d2p1:FileModel> <d2p1:DownloadUrl>sample string 5</d2p1:DownloadUrl> <d2p1:DownloadUrlExpires>2025-08-21T14:37:59Z</d2p1:DownloadUrlExpires> <d2p1:FileRepoId>sample string 1</d2p1:FileRepoId> <d2p1:LastModified>2025-08-21T14:37:59Z</d2p1:LastModified> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:Size>3</d2p1:Size> </d2p1:FileModel> <d2p1:FileModel> <d2p1:DownloadUrl>sample string 5</d2p1:DownloadUrl> <d2p1:DownloadUrlExpires>2025-08-21T14:37:59Z</d2p1:DownloadUrlExpires> <d2p1:FileRepoId>sample string 1</d2p1:FileRepoId> <d2p1:LastModified>2025-08-21T14:37:59Z</d2p1:LastModified> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:Size>3</d2p1:Size> </d2p1:FileModel> </Files> <IsDraft>true</IsDraft> <Submitted>2025-08-21T14:37:59Z</Submitted> <Text>sample string 4</Text> </AssignmentAnswerResponse>