GET restapi/personal/assignments/{elementId}/answers/persons/{personId}/v1
Get assignment answer for an assignment for a specific person. Not possible to use to get others' answers when assignment is anonymous.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| elementId |
The elementId for the assignment, unique in scope of a customer. |
integer |
Required |
| personId |
The personId to get answer for |
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.AssignmentAnswerResponse| Name | 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 Itsolutions.Itslearning.Web.RestApi.Personal.Assignment.Responses.AssignmentFileModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"AnswerId": 1,
"IsDraft": true,
"Submitted": "2026-03-19T19:20:08Z",
"Text": "sample string 4",
"Files": [
{
"FileId": 1,
"Name": "sample string 2",
"Size": 1,
"LastModified": "2026-03-19T19:20:08Z"
},
{
"FileId": 1,
"Name": "sample string 2",
"Size": 1,
"LastModified": "2026-03-19T19:20:08Z"
}
]
}
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>
<AssignmentFileModel>
<FileId>1</FileId>
<LastModified>2026-03-19T19:20:08Z</LastModified>
<Name>sample string 2</Name>
<Size>1</Size>
</AssignmentFileModel>
<AssignmentFileModel>
<FileId>1</FileId>
<LastModified>2026-03-19T19:20:08Z</LastModified>
<Name>sample string 2</Name>
<Size>1</Size>
</AssignmentFileModel>
</Files>
<IsDraft>true</IsDraft>
<Submitted>2026-03-19T19:20:08Z</Submitted>
<Text>sample string 4</Text>
</AssignmentAnswerResponse>