POST api/Parent/insertRecord

Request Information

URI Parameters

None.

Body Parameters

Parent
NameDescriptionTypeAdditional information
ParentId

decimal number

None.

BranchId

decimal number

None.

FatherName

string

None.

MotherName

string

None.

FathersPhoto

Collection of byte

None.

MothersPhoto

Collection of byte

None.

FathersMobileNo

string

None.

MothersMobileNo

string

None.

FathersUID

string

None.

MothersUID

string

None.

SMSOPTOUTFathersMobile

integer

None.

SMSOPTOUTMothersMobile

integer

None.

Password

string

None.

Address

string

None.

ZipCode

string

None.

StateId

decimal number

None.

CountryId

decimal number

None.

Email

string

None.

UnsubscribeParentsEmail

integer

None.

EditReason

string

None.

OccupationId

decimal number

None.

CreatedBy

decimal number

None.

CreatedDate

date

None.

Status

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ParentId": 1.0,
  "BranchId": 2.0,
  "FatherName": "sample string 3",
  "MotherName": "sample string 4",
  "FathersPhoto": "QEA=",
  "MothersPhoto": "QEA=",
  "FathersMobileNo": "sample string 5",
  "MothersMobileNo": "sample string 6",
  "FathersUID": "sample string 7",
  "MothersUID": "sample string 8",
  "SMSOPTOUTFathersMobile": 9,
  "SMSOPTOUTMothersMobile": 10,
  "Password": "sample string 11",
  "Address": "sample string 12",
  "ZipCode": "sample string 13",
  "StateId": 14.0,
  "CountryId": 15.0,
  "Email": "sample string 16",
  "UnsubscribeParentsEmail": 17,
  "EditReason": "sample string 18",
  "OccupationId": 19.0,
  "CreatedBy": 20.0,
  "CreatedDate": "2022-08-19T04:08:10.8557689+05:30",
  "Status": "sample string 22"
}

application/xml, text/xml

Sample:
<Parent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZenoxERP.API.Models.Extensions">
  <Address>sample string 12</Address>
  <BranchId>2</BranchId>
  <CountryId>15</CountryId>
  <CreatedBy>20</CreatedBy>
  <CreatedDate>2022-08-19T04:08:10.8557689+05:30</CreatedDate>
  <EditReason>sample string 18</EditReason>
  <Email>sample string 16</Email>
  <FatherName>sample string 3</FatherName>
  <FathersMobileNo>sample string 5</FathersMobileNo>
  <FathersPhoto>QEA=</FathersPhoto>
  <FathersUID>sample string 7</FathersUID>
  <MotherName>sample string 4</MotherName>
  <MothersMobileNo>sample string 6</MothersMobileNo>
  <MothersPhoto>QEA=</MothersPhoto>
  <MothersUID>sample string 8</MothersUID>
  <OccupationId>19</OccupationId>
  <ParentId>1</ParentId>
  <Password>sample string 11</Password>
  <SMSOPTOUTFathersMobile>9</SMSOPTOUTFathersMobile>
  <SMSOPTOUTMothersMobile>10</SMSOPTOUTMothersMobile>
  <StateId>14</StateId>
  <Status>sample string 22</Status>
  <UnsubscribeParentsEmail>17</UnsubscribeParentsEmail>
  <ZipCode>sample string 13</ZipCode>
</Parent>

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

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>