POST api/v1/personcategories

Request Information

URI Parameters

None.

Body Parameters

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": "3775c552-adce-4cc7-aad8-7354509a2a6e",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "67a9bc2a-d3a5-413f-aa99-81f94183deb6",
  "Remarks": "sample string 3",
  "Id": "3775c552-adce-4cc7-aad8-7354509a2a6e",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"3775c552-adce-4cc7-aad8-7354509a2a6e","CategoryName":"sample string 2","ParentPersonCategoryId":"67a9bc2a-d3a5-413f-aa99-81f94183deb6","Remarks":"sample string 3","Id":"3775c552-adce-4cc7-aad8-7354509a2a6e","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">3775c552-adce-4cc7-aad8-7354509a2a6e</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>67a9bc2a-d3a5-413f-aa99-81f94183deb6</ParentPersonCategoryId>
  <PersonCategoryId>3775c552-adce-4cc7-aad8-7354509a2a6e</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

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": "27581386-56af-45a8-ae4a-e08143229fa7",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "aba515d3-b290-41f1-afa6-20d6986dd9b9",
  "Remarks": "sample string 3",
  "Id": "27581386-56af-45a8-ae4a-e08143229fa7",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"27581386-56af-45a8-ae4a-e08143229fa7","CategoryName":"sample string 2","ParentPersonCategoryId":"aba515d3-b290-41f1-afa6-20d6986dd9b9","Remarks":"sample string 3","Id":"27581386-56af-45a8-ae4a-e08143229fa7","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">27581386-56af-45a8-ae4a-e08143229fa7</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>aba515d3-b290-41f1-afa6-20d6986dd9b9</ParentPersonCategoryId>
  <PersonCategoryId>27581386-56af-45a8-ae4a-e08143229fa7</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>