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": "d1f37931-ba02-46fe-be19-b569b799b65b",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "0df451b0-e295-41da-9212-7c2a79153dd4",
  "Remarks": "sample string 3",
  "Id": "d1f37931-ba02-46fe-be19-b569b799b65b",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"d1f37931-ba02-46fe-be19-b569b799b65b","CategoryName":"sample string 2","ParentPersonCategoryId":"0df451b0-e295-41da-9212-7c2a79153dd4","Remarks":"sample string 3","Id":"d1f37931-ba02-46fe-be19-b569b799b65b","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">d1f37931-ba02-46fe-be19-b569b799b65b</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>0df451b0-e295-41da-9212-7c2a79153dd4</ParentPersonCategoryId>
  <PersonCategoryId>d1f37931-ba02-46fe-be19-b569b799b65b</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": "7b6781bd-f86d-4249-a95b-6820de866075",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "2db502b1-5f53-4060-91c1-f0c3692fce32",
  "Remarks": "sample string 3",
  "Id": "7b6781bd-f86d-4249-a95b-6820de866075",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"7b6781bd-f86d-4249-a95b-6820de866075","CategoryName":"sample string 2","ParentPersonCategoryId":"2db502b1-5f53-4060-91c1-f0c3692fce32","Remarks":"sample string 3","Id":"7b6781bd-f86d-4249-a95b-6820de866075","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">7b6781bd-f86d-4249-a95b-6820de866075</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>2db502b1-5f53-4060-91c1-f0c3692fce32</ParentPersonCategoryId>
  <PersonCategoryId>7b6781bd-f86d-4249-a95b-6820de866075</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>