POST api/VisitPurpose/insertRecord

Request Information

URI Parameters

None.

Body Parameters

VisitPurpose
NameDescriptionTypeAdditional information
VisitPurposeId

decimal number

None.

VisitPurposeTitle

string

None.

EditReason

string

None.

Status

string

None.

Request Formats

application/json, text/json

Sample:
{
  "VisitPurposeId": 1.0,
  "VisitPurposeTitle": "sample string 2",
  "EditReason": "sample string 3",
  "Status": "sample string 4"
}

application/xml, text/xml

Sample:
<VisitPurpose xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZenoxERP.API.Models.Extensions">
  <EditReason>sample string 3</EditReason>
  <Status>sample string 4</Status>
  <VisitPurposeId>1</VisitPurposeId>
  <VisitPurposeTitle>sample string 2</VisitPurposeTitle>
</VisitPurpose>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>