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": "e417aff0-4281-4584-9f99-21433353878d",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "bc020b99-f8ed-463d-a2dd-09e1c072f11d",
  "Remarks": "sample string 3",
  "Id": "e417aff0-4281-4584-9f99-21433353878d",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"e417aff0-4281-4584-9f99-21433353878d","CategoryName":"sample string 2","ParentPersonCategoryId":"bc020b99-f8ed-463d-a2dd-09e1c072f11d","Remarks":"sample string 3","Id":"e417aff0-4281-4584-9f99-21433353878d","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">e417aff0-4281-4584-9f99-21433353878d</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>bc020b99-f8ed-463d-a2dd-09e1c072f11d</ParentPersonCategoryId>
  <PersonCategoryId>e417aff0-4281-4584-9f99-21433353878d</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": "0880742c-3658-4397-9a70-6108e50254f3",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "aefd21f1-ecb7-47b5-8352-7e9513be89a2",
  "Remarks": "sample string 3",
  "Id": "0880742c-3658-4397-9a70-6108e50254f3",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"0880742c-3658-4397-9a70-6108e50254f3","CategoryName":"sample string 2","ParentPersonCategoryId":"aefd21f1-ecb7-47b5-8352-7e9513be89a2","Remarks":"sample string 3","Id":"0880742c-3658-4397-9a70-6108e50254f3","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">0880742c-3658-4397-9a70-6108e50254f3</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>aefd21f1-ecb7-47b5-8352-7e9513be89a2</ParentPersonCategoryId>
  <PersonCategoryId>0880742c-3658-4397-9a70-6108e50254f3</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>