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": "e3df4268-ce46-4b6e-971f-2de10eb61af7",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "f4b9dc4e-9b73-489d-93df-85fa5cae5fbd",
  "Remarks": "sample string 3",
  "Id": "e3df4268-ce46-4b6e-971f-2de10eb61af7",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"e3df4268-ce46-4b6e-971f-2de10eb61af7","CategoryName":"sample string 2","ParentPersonCategoryId":"f4b9dc4e-9b73-489d-93df-85fa5cae5fbd","Remarks":"sample string 3","Id":"e3df4268-ce46-4b6e-971f-2de10eb61af7","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">e3df4268-ce46-4b6e-971f-2de10eb61af7</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>f4b9dc4e-9b73-489d-93df-85fa5cae5fbd</ParentPersonCategoryId>
  <PersonCategoryId>e3df4268-ce46-4b6e-971f-2de10eb61af7</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": "36ed9147-8894-47e7-b782-955f66686873",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "491f2319-2bef-4921-babd-df6f103b54b6",
  "Remarks": "sample string 3",
  "Id": "36ed9147-8894-47e7-b782-955f66686873",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"36ed9147-8894-47e7-b782-955f66686873","CategoryName":"sample string 2","ParentPersonCategoryId":"491f2319-2bef-4921-babd-df6f103b54b6","Remarks":"sample string 3","Id":"36ed9147-8894-47e7-b782-955f66686873","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">36ed9147-8894-47e7-b782-955f66686873</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>491f2319-2bef-4921-babd-df6f103b54b6</ParentPersonCategoryId>
  <PersonCategoryId>36ed9147-8894-47e7-b782-955f66686873</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>