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": "8a45d4a9-e1c6-4129-820b-a0a7d1d5e770",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "3c80885b-03b8-4299-a458-4f9dd9d03ae5",
  "Remarks": "sample string 3",
  "Id": "8a45d4a9-e1c6-4129-820b-a0a7d1d5e770",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"8a45d4a9-e1c6-4129-820b-a0a7d1d5e770","CategoryName":"sample string 2","ParentPersonCategoryId":"3c80885b-03b8-4299-a458-4f9dd9d03ae5","Remarks":"sample string 3","Id":"8a45d4a9-e1c6-4129-820b-a0a7d1d5e770","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">8a45d4a9-e1c6-4129-820b-a0a7d1d5e770</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>3c80885b-03b8-4299-a458-4f9dd9d03ae5</ParentPersonCategoryId>
  <PersonCategoryId>8a45d4a9-e1c6-4129-820b-a0a7d1d5e770</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": "f704729c-f3f9-4646-af76-1256ad930911",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "e6b7b0a2-8492-4c0c-9cbb-f266e36146b8",
  "Remarks": "sample string 3",
  "Id": "f704729c-f3f9-4646-af76-1256ad930911",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"f704729c-f3f9-4646-af76-1256ad930911","CategoryName":"sample string 2","ParentPersonCategoryId":"e6b7b0a2-8492-4c0c-9cbb-f266e36146b8","Remarks":"sample string 3","Id":"f704729c-f3f9-4646-af76-1256ad930911","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">f704729c-f3f9-4646-af76-1256ad930911</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>e6b7b0a2-8492-4c0c-9cbb-f266e36146b8</ParentPersonCategoryId>
  <PersonCategoryId>f704729c-f3f9-4646-af76-1256ad930911</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>