POST api/v1/general/schools/school

Request Information

URI Parameters

None.

Body Parameters

SchoolModel
NameDescriptionTypeAdditional information
Id

integer

None.

OperatorId

integer

None.

Name

string

Required

Max length: 50

Address

string

None.

Contact

string

Max length: 50

Phone

string

Max length: 20

Email

string

Max length: 100

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "OperatorId": 2,
  "Name": "sample string 3",
  "Address": "sample string 4",
  "Contact": "sample string 5",
  "Phone": "sample string 6",
  "Email": "sample string 7",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<SchoolModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <Address>sample string 4</Address>
  <Contact>sample string 5</Contact>
  <Email>sample string 7</Email>
  <Id>1</Id>
  <IsDeleted>true</IsDeleted>
  <Name>sample string 3</Name>
  <OperatorId>2</OperatorId>
  <Phone>sample string 6</Phone>
</SchoolModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SchoolModel'.

Response Information

Resource Description

SchoolModel
NameDescriptionTypeAdditional information
Id

integer

None.

OperatorId

integer

None.

Name

string

Required

Max length: 50

Address

string

None.

Contact

string

Max length: 50

Phone

string

Max length: 20

Email

string

Max length: 100

IsDeleted

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "OperatorId": 2,
  "Name": "sample string 3",
  "Address": "sample string 4",
  "Contact": "sample string 5",
  "Phone": "sample string 6",
  "Email": "sample string 7",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<SchoolModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <Address>sample string 4</Address>
  <Contact>sample string 5</Contact>
  <Email>sample string 7</Email>
  <Id>1</Id>
  <IsDeleted>true</IsDeleted>
  <Name>sample string 3</Name>
  <OperatorId>2</OperatorId>
  <Phone>sample string 6</Phone>
</SchoolModel>