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": "37d423b8-bdbc-4092-8a10-ebd3fcbeb189",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "9ae9946f-7ea2-47e7-914e-15f1770543ce",
  "Remarks": "sample string 3",
  "Id": "37d423b8-bdbc-4092-8a10-ebd3fcbeb189",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"37d423b8-bdbc-4092-8a10-ebd3fcbeb189","CategoryName":"sample string 2","ParentPersonCategoryId":"9ae9946f-7ea2-47e7-914e-15f1770543ce","Remarks":"sample string 3","Id":"37d423b8-bdbc-4092-8a10-ebd3fcbeb189","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">37d423b8-bdbc-4092-8a10-ebd3fcbeb189</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>9ae9946f-7ea2-47e7-914e-15f1770543ce</ParentPersonCategoryId>
  <PersonCategoryId>37d423b8-bdbc-4092-8a10-ebd3fcbeb189</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": "0cbe96f4-badc-48b8-b144-3b3f570d5696",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "39c1aea8-caa3-4073-8433-fe464509bb6a",
  "Remarks": "sample string 3",
  "Id": "0cbe96f4-badc-48b8-b144-3b3f570d5696",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"0cbe96f4-badc-48b8-b144-3b3f570d5696","CategoryName":"sample string 2","ParentPersonCategoryId":"39c1aea8-caa3-4073-8433-fe464509bb6a","Remarks":"sample string 3","Id":"0cbe96f4-badc-48b8-b144-3b3f570d5696","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">0cbe96f4-badc-48b8-b144-3b3f570d5696</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>39c1aea8-caa3-4073-8433-fe464509bb6a</ParentPersonCategoryId>
  <PersonCategoryId>0cbe96f4-badc-48b8-b144-3b3f570d5696</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>