POST api/userSentMissions/bulk

Request Information

URI Parameters

None.

Body Parameters

Collection of UserSentMissionsVM
NameDescriptionTypeAdditional information
Student

The student Id

string

Required

Missions

List of mission Ids to assign to the student

Collection of string

Required

Min length: 1

Request Formats

application/json, text/json

Sample:
[
  {
    "student": "sample string 1",
    "missions": [
      "sample string 1",
      "sample string 2"
    ]
  },
  {
    "student": "sample string 1",
    "missions": [
      "sample string 1",
      "sample string 2"
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserSentMissionsVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OHS.TLMClassroomResponder.WebAPI.Areas.StudentMissions.ViewModels">
  <UserSentMissionsVM>
    <Missions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Missions>
    <Student>sample string 1</Student>
  </UserSentMissionsVM>
  <UserSentMissionsVM>
    <Missions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Missions>
    <Student>sample string 1</Student>
  </UserSentMissionsVM>
</ArrayOfUserSentMissionsVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.