POST api/orgPerson

Insert a new record into the Persons table.

Request Information

URI Parameters

None.

Body Parameters

orgPersonDb
NameDescriptionTypeAdditional information
PersonID

integer

None.

FirstName

string

Max length: 50

LastName

string

Max length: 50

PersonName

string

Max length: 101

BirthDate

date

None.

IsActive

boolean

None.

Comment

string

Max length: 240

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

P3PLPersonID

integer

None.

FBSubContact2ID

integer

None.

UserID

integer

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "PersonID": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "PersonName": "sample string 4",
  "BirthDate": "2025-12-06T23:39:33.4577085+00:00",
  "IsActive": true,
  "Comment": "sample string 6",
  "CreatedBy": 7,
  "CreatedDate": "2025-12-06T23:39:33.4577085+00:00",
  "UpdatedBy": 9,
  "UpdatedDate": "2025-12-06T23:39:33.4577085+00:00",
  "P3PLPersonID": 1,
  "FBSubContact2ID": 1,
  "UserID": 11
}

application/xml, text/xml

Sample:
<orgPersonDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <BirthDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:33.4577085Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </BirthDate>
  <Comment>sample string 6</Comment>
  <CreatedBy>7</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:33.4577085Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <FBSubContact2ID>1</FBSubContact2ID>
  <FirstName>sample string 2</FirstName>
  <IsActive>true</IsActive>
  <LastName>sample string 3</LastName>
  <P3PLPersonID>1</P3PLPersonID>
  <PersonID>1</PersonID>
  <PersonName>sample string 4</PersonName>
  <UpdatedBy>9</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:33.4577085Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
  <UserID>11</UserID>
</orgPersonDb>

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

Response Information

Resource Description

orgPersonDb
NameDescriptionTypeAdditional information
PersonID

integer

None.

FirstName

string

Max length: 50

LastName

string

Max length: 50

PersonName

string

Max length: 101

BirthDate

date

None.

IsActive

boolean

None.

Comment

string

Max length: 240

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

P3PLPersonID

integer

None.

FBSubContact2ID

integer

None.

UserID

integer

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "PersonID": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "PersonName": "sample string 4",
  "BirthDate": "2025-12-06T23:39:33.4577085+00:00",
  "IsActive": true,
  "Comment": "sample string 6",
  "CreatedBy": 7,
  "CreatedDate": "2025-12-06T23:39:33.4577085+00:00",
  "UpdatedBy": 9,
  "UpdatedDate": "2025-12-06T23:39:33.4577085+00:00",
  "P3PLPersonID": 1,
  "FBSubContact2ID": 1,
  "UserID": 11
}

application/xml, text/xml

Sample:
<orgPersonDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <BirthDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:33.4577085Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </BirthDate>
  <Comment>sample string 6</Comment>
  <CreatedBy>7</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:33.4577085Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <FBSubContact2ID>1</FBSubContact2ID>
  <FirstName>sample string 2</FirstName>
  <IsActive>true</IsActive>
  <LastName>sample string 3</LastName>
  <P3PLPersonID>1</P3PLPersonID>
  <PersonID>1</PersonID>
  <PersonName>sample string 4</PersonName>
  <UpdatedBy>9</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:33.4577085Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
  <UserID>11</UserID>
</orgPersonDb>