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": "1d427096-fa30-4fd8-8872-21af163dd172",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "cf50c42c-ab96-4755-9cb2-2c57c498abf8",
  "Remarks": "sample string 3",
  "Id": "1d427096-fa30-4fd8-8872-21af163dd172",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"1d427096-fa30-4fd8-8872-21af163dd172","CategoryName":"sample string 2","ParentPersonCategoryId":"cf50c42c-ab96-4755-9cb2-2c57c498abf8","Remarks":"sample string 3","Id":"1d427096-fa30-4fd8-8872-21af163dd172","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">1d427096-fa30-4fd8-8872-21af163dd172</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>cf50c42c-ab96-4755-9cb2-2c57c498abf8</ParentPersonCategoryId>
  <PersonCategoryId>1d427096-fa30-4fd8-8872-21af163dd172</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": "d51b9197-5fe4-4d8b-ba2d-dd4155029f6f",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "ff65cdeb-2654-4be9-bc50-bb094356f4ef",
  "Remarks": "sample string 3",
  "Id": "d51b9197-5fe4-4d8b-ba2d-dd4155029f6f",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"d51b9197-5fe4-4d8b-ba2d-dd4155029f6f","CategoryName":"sample string 2","ParentPersonCategoryId":"ff65cdeb-2654-4be9-bc50-bb094356f4ef","Remarks":"sample string 3","Id":"d51b9197-5fe4-4d8b-ba2d-dd4155029f6f","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">d51b9197-5fe4-4d8b-ba2d-dd4155029f6f</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>ff65cdeb-2654-4be9-bc50-bb094356f4ef</ParentPersonCategoryId>
  <PersonCategoryId>d51b9197-5fe4-4d8b-ba2d-dd4155029f6f</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>