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": "5474950e-6cdc-4243-8a5a-a3be9ea2d972",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "49e669b8-8137-4784-b98d-b8f7d359e3ba",
  "Remarks": "sample string 3",
  "Id": "5474950e-6cdc-4243-8a5a-a3be9ea2d972",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"5474950e-6cdc-4243-8a5a-a3be9ea2d972","CategoryName":"sample string 2","ParentPersonCategoryId":"49e669b8-8137-4784-b98d-b8f7d359e3ba","Remarks":"sample string 3","Id":"5474950e-6cdc-4243-8a5a-a3be9ea2d972","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">5474950e-6cdc-4243-8a5a-a3be9ea2d972</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>49e669b8-8137-4784-b98d-b8f7d359e3ba</ParentPersonCategoryId>
  <PersonCategoryId>5474950e-6cdc-4243-8a5a-a3be9ea2d972</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": "cbc0512f-2e83-46df-a4fd-bd987daeda41",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "79b1ddde-1e7c-4aef-a59e-2a3faf2f88a9",
  "Remarks": "sample string 3",
  "Id": "cbc0512f-2e83-46df-a4fd-bd987daeda41",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"cbc0512f-2e83-46df-a4fd-bd987daeda41","CategoryName":"sample string 2","ParentPersonCategoryId":"79b1ddde-1e7c-4aef-a59e-2a3faf2f88a9","Remarks":"sample string 3","Id":"cbc0512f-2e83-46df-a4fd-bd987daeda41","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">cbc0512f-2e83-46df-a4fd-bd987daeda41</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>79b1ddde-1e7c-4aef-a59e-2a3faf2f88a9</ParentPersonCategoryId>
  <PersonCategoryId>cbc0512f-2e83-46df-a4fd-bd987daeda41</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>