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": "bf1e3b33-1a6b-4247-99bd-b3499188a988",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "75e29338-2216-4340-b640-3c653d079d89",
  "Remarks": "sample string 3",
  "Id": "bf1e3b33-1a6b-4247-99bd-b3499188a988",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"bf1e3b33-1a6b-4247-99bd-b3499188a988","CategoryName":"sample string 2","ParentPersonCategoryId":"75e29338-2216-4340-b640-3c653d079d89","Remarks":"sample string 3","Id":"bf1e3b33-1a6b-4247-99bd-b3499188a988","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">bf1e3b33-1a6b-4247-99bd-b3499188a988</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>75e29338-2216-4340-b640-3c653d079d89</ParentPersonCategoryId>
  <PersonCategoryId>bf1e3b33-1a6b-4247-99bd-b3499188a988</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": "eb9332de-a203-46d8-8d34-c219a6bc2041",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "90a306ec-23fb-4383-825c-974264372a99",
  "Remarks": "sample string 3",
  "Id": "eb9332de-a203-46d8-8d34-c219a6bc2041",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"eb9332de-a203-46d8-8d34-c219a6bc2041","CategoryName":"sample string 2","ParentPersonCategoryId":"90a306ec-23fb-4383-825c-974264372a99","Remarks":"sample string 3","Id":"eb9332de-a203-46d8-8d34-c219a6bc2041","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">eb9332de-a203-46d8-8d34-c219a6bc2041</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>90a306ec-23fb-4383-825c-974264372a99</ParentPersonCategoryId>
  <PersonCategoryId>eb9332de-a203-46d8-8d34-c219a6bc2041</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>