POST api/Configuration/School

Request Information

URI Parameters

None.

Body Parameters

SchoolViewModel
NameDescriptionTypeAdditional information
id

integer

None.

Name

string

Required

Max length: 150

Min length: 1

Address

string

None.

Principal

string

Required

VicePrincipal

string

Required

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "Name": "sample string 2",
  "Address": "sample string 3",
  "Principal": "sample string 4",
  "VicePrincipal": "sample string 5"
}

application/xml, text/xml

Sample:
<SchoolViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.Configuration">
  <Address>sample string 3</Address>
  <Name>sample string 2</Name>
  <Principal>sample string 4</Principal>
  <VicePrincipal>sample string 5</VicePrincipal>
  <id>1</id>
</SchoolViewModel>

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.