POST api/v1/personcategories

Inserts the specified personCategory details.

Request Information

URI Parameters

None.

Body Parameters

The personCategory details.

PersonCategoryDetails
NameDescriptionTypeAdditional information
PersonCategoryId

globally unique identifier

None.

CategoryName

string

Required

String length: inclusive between 0 and 100

ParentPersonCategoryId

globally unique identifier

None.

Remarks

string

String length: inclusive between 0 and 250

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonCategoryId": "8dc44360-c356-4f2c-a3d7-2a47de5e2008",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "4cd093d8-efb3-40dd-a096-ef5cf471ef86",
  "Remarks": "sample string 3",
  "Id": "8dc44360-c356-4f2c-a3d7-2a47de5e2008",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"8dc44360-c356-4f2c-a3d7-2a47de5e2008","CategoryName":"sample string 2","ParentPersonCategoryId":"4cd093d8-efb3-40dd-a096-ef5cf471ef86","Remarks":"sample string 3","Id":"8dc44360-c356-4f2c-a3d7-2a47de5e2008","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<PersonCategoryDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Club">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">8dc44360-c356-4f2c-a3d7-2a47de5e2008</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>4cd093d8-efb3-40dd-a096-ef5cf471ef86</ParentPersonCategoryId>
  <PersonCategoryId>8dc44360-c356-4f2c-a3d7-2a47de5e2008</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>

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

Response Information

Resource Description

PersonCategoryDetails
NameDescriptionTypeAdditional information
PersonCategoryId

globally unique identifier

None.

CategoryName

string

Required

String length: inclusive between 0 and 100

ParentPersonCategoryId

globally unique identifier

None.

Remarks

string

String length: inclusive between 0 and 250

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "PersonCategoryId": "55081926-017c-4d0d-88a9-8bab79707934",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "0d066416-60eb-4e13-913b-dd08b1e26add",
  "Remarks": "sample string 3",
  "Id": "55081926-017c-4d0d-88a9-8bab79707934",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"55081926-017c-4d0d-88a9-8bab79707934","CategoryName":"sample string 2","ParentPersonCategoryId":"0d066416-60eb-4e13-913b-dd08b1e26add","Remarks":"sample string 3","Id":"55081926-017c-4d0d-88a9-8bab79707934","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<PersonCategoryDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Club">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">55081926-017c-4d0d-88a9-8bab79707934</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>0d066416-60eb-4e13-913b-dd08b1e26add</ParentPersonCategoryId>
  <PersonCategoryId>55081926-017c-4d0d-88a9-8bab79707934</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>