POST api/Tutor

Request Information

URI Parameters

None.

Body Parameters

Tutor
NameDescriptionTypeAdditional information
RecordNo

integer

None.

FirstName

string

None.

LastName

string

None.

EmailAddress

string

None.

PhoneNumber

string

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "EmailAddress": "sample string 4",
  "PhoneNumber": "sample string 5",
  "CreatedOn": "2024-12-22T02:18:10.4842497+00:00",
  "UpdatedOn": "2024-12-22T02:18:10.4842497+00:00",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<Tutor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.Models">
  <CreatedOn>2024-12-22T02:18:10.4842497+00:00</CreatedOn>
  <EmailAddress>sample string 4</EmailAddress>
  <FirstName>sample string 2</FirstName>
  <IsDeleted>true</IsDeleted>
  <LastName>sample string 3</LastName>
  <PhoneNumber>sample string 5</PhoneNumber>
  <RecordNo>1</RecordNo>
  <UpdatedOn>2024-12-22T02:18:10.4842497+00:00</UpdatedOn>
</Tutor>

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 'Tutor'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.