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": "a21cdc24-1add-4864-81ab-8518c27193e8",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "15dc47d3-190b-4235-8742-cac98a75cf60",
  "Remarks": "sample string 3",
  "Id": "a21cdc24-1add-4864-81ab-8518c27193e8",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"a21cdc24-1add-4864-81ab-8518c27193e8","CategoryName":"sample string 2","ParentPersonCategoryId":"15dc47d3-190b-4235-8742-cac98a75cf60","Remarks":"sample string 3","Id":"a21cdc24-1add-4864-81ab-8518c27193e8","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">a21cdc24-1add-4864-81ab-8518c27193e8</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>15dc47d3-190b-4235-8742-cac98a75cf60</ParentPersonCategoryId>
  <PersonCategoryId>a21cdc24-1add-4864-81ab-8518c27193e8</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": "f0789705-9e70-4a3e-b651-9bae5f7a3e66",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "9883c5ac-4f0d-4bf1-9576-af713611f262",
  "Remarks": "sample string 3",
  "Id": "f0789705-9e70-4a3e-b651-9bae5f7a3e66",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"f0789705-9e70-4a3e-b651-9bae5f7a3e66","CategoryName":"sample string 2","ParentPersonCategoryId":"9883c5ac-4f0d-4bf1-9576-af713611f262","Remarks":"sample string 3","Id":"f0789705-9e70-4a3e-b651-9bae5f7a3e66","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">f0789705-9e70-4a3e-b651-9bae5f7a3e66</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>9883c5ac-4f0d-4bf1-9576-af713611f262</ParentPersonCategoryId>
  <PersonCategoryId>f0789705-9e70-4a3e-b651-9bae5f7a3e66</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>