POST restapi/personal/assignments/{elementId}/tasks/status/v1

Set the task status for one or more students for a specific assignment where completion mode is ManualByStudent or ManualByTeacher.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
elementId

The elementId for the assignment, unique in scope of a customer.

integer

Required

Body Parameters

Contains PersonIds and TaskStatus. Allowed task status values are "NotStarted", "InProgress", "Completed".

Itsolutions.Itslearning.Web.RestApi.Personal.Element.Requests.SubmitTaskStatusRequest
NameDescriptionTypeAdditional information
PersonIds

List of person Ids to set the task status for.

Collection of integer

None.

TaskStatus

Task status to set, for a task which is associated with an element. Allowed values are "NotStarted", "InProgress", "Completed".

Itslearning.RestApi.Entities.TaskStatus

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonIds": [
    1,
    2
  ],
  "TaskStatus": "Unknown"
}

application/xml, text/xml

Sample:
<SubmitTaskStatusRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.Element.Requests">
  <PersonIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </PersonIds>
  <TaskStatus>Unknown</TaskStatus>
</SubmitTaskStatusRequest>

application/x-www-form-urlencoded

Sample:
No sample available

Response Information

Resource Description

None.