PUT api/yeargroup/update

Updates year group

Request Information

URI Parameters

None.

Body Parameters

CreateYearGroupViewModel
NameDescriptionTypeAdditional information
YearGroupId

integer

None.

StudentId

integer

None.

SeasonId

integer

None.

SchoolId

integer

None.

YearGroupNumber

string

None.

YearGroupPostfix

string

None.

Request Formats

application/json, text/json

Sample:
{
  "YearGroupId": 1,
  "StudentId": 2,
  "SeasonId": 3,
  "SchoolId": 4,
  "YearGroupNumber": "sample string 5",
  "YearGroupPostfix": "sample string 6"
}

application/xml, text/xml

Sample:
<CreateYearGroupViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpeedadminApi.ViewModels">
  <SchoolId>4</SchoolId>
  <SeasonId>3</SeasonId>
  <StudentId>2</StudentId>
  <YearGroupId>1</YearGroupId>
  <YearGroupNumber>sample string 5</YearGroupNumber>
  <YearGroupPostfix>sample string 6</YearGroupPostfix>
</CreateYearGroupViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of YearGroupViewModel
NameDescriptionTypeAdditional information
YearGroupId

integer

None.

StudentId

integer

None.

SeasonId

integer

None.

SchoolId

integer

None.

YearGroupNumber

string

None.

YearGroupPostfix

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "YearGroupId": 1,
    "StudentId": 2,
    "SeasonId": 3,
    "SchoolId": 4,
    "YearGroupNumber": "sample string 5",
    "YearGroupPostfix": "sample string 6"
  },
  {
    "YearGroupId": 1,
    "StudentId": 2,
    "SeasonId": 3,
    "SchoolId": 4,
    "YearGroupNumber": "sample string 5",
    "YearGroupPostfix": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfYearGroupViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpeedadminApi.ViewModels">
  <YearGroupViewModel>
    <SchoolId>4</SchoolId>
    <SeasonId>3</SeasonId>
    <StudentId>2</StudentId>
    <YearGroupId>1</YearGroupId>
    <YearGroupNumber>sample string 5</YearGroupNumber>
    <YearGroupPostfix>sample string 6</YearGroupPostfix>
  </YearGroupViewModel>
  <YearGroupViewModel>
    <SchoolId>4</SchoolId>
    <SeasonId>3</SeasonId>
    <StudentId>2</StudentId>
    <YearGroupId>1</YearGroupId>
    <YearGroupNumber>sample string 5</YearGroupNumber>
    <YearGroupPostfix>sample string 6</YearGroupPostfix>
  </YearGroupViewModel>
</ArrayOfYearGroupViewModel>