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": "308e7e27-2b20-4668-964b-76c853820462",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "20368e66-d278-4515-8c37-a612b9c6f55c",
  "Remarks": "sample string 3",
  "Id": "308e7e27-2b20-4668-964b-76c853820462",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"308e7e27-2b20-4668-964b-76c853820462","CategoryName":"sample string 2","ParentPersonCategoryId":"20368e66-d278-4515-8c37-a612b9c6f55c","Remarks":"sample string 3","Id":"308e7e27-2b20-4668-964b-76c853820462","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">308e7e27-2b20-4668-964b-76c853820462</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>20368e66-d278-4515-8c37-a612b9c6f55c</ParentPersonCategoryId>
  <PersonCategoryId>308e7e27-2b20-4668-964b-76c853820462</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": "4fe243f0-89c7-43b4-9d30-a6fb21fc4539",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "b3e32018-c04e-447f-9548-3027d56c821e",
  "Remarks": "sample string 3",
  "Id": "4fe243f0-89c7-43b4-9d30-a6fb21fc4539",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"4fe243f0-89c7-43b4-9d30-a6fb21fc4539","CategoryName":"sample string 2","ParentPersonCategoryId":"b3e32018-c04e-447f-9548-3027d56c821e","Remarks":"sample string 3","Id":"4fe243f0-89c7-43b4-9d30-a6fb21fc4539","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">4fe243f0-89c7-43b4-9d30-a6fb21fc4539</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>b3e32018-c04e-447f-9548-3027d56c821e</ParentPersonCategoryId>
  <PersonCategoryId>4fe243f0-89c7-43b4-9d30-a6fb21fc4539</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>