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": "66f7d69c-5756-42ef-a98e-6d208f2f2f66",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "70fb9c79-7b29-4c19-b0df-29feab5e6e74",
  "Remarks": "sample string 3",
  "Id": "66f7d69c-5756-42ef-a98e-6d208f2f2f66",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"66f7d69c-5756-42ef-a98e-6d208f2f2f66","CategoryName":"sample string 2","ParentPersonCategoryId":"70fb9c79-7b29-4c19-b0df-29feab5e6e74","Remarks":"sample string 3","Id":"66f7d69c-5756-42ef-a98e-6d208f2f2f66","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">66f7d69c-5756-42ef-a98e-6d208f2f2f66</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>70fb9c79-7b29-4c19-b0df-29feab5e6e74</ParentPersonCategoryId>
  <PersonCategoryId>66f7d69c-5756-42ef-a98e-6d208f2f2f66</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": "1082625c-94b7-4181-bf93-a9cf8de204fb",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "c996752b-4d5d-477b-a58d-e3aeedf1c5d5",
  "Remarks": "sample string 3",
  "Id": "1082625c-94b7-4181-bf93-a9cf8de204fb",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"1082625c-94b7-4181-bf93-a9cf8de204fb","CategoryName":"sample string 2","ParentPersonCategoryId":"c996752b-4d5d-477b-a58d-e3aeedf1c5d5","Remarks":"sample string 3","Id":"1082625c-94b7-4181-bf93-a9cf8de204fb","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">1082625c-94b7-4181-bf93-a9cf8de204fb</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>c996752b-4d5d-477b-a58d-e3aeedf1c5d5</ParentPersonCategoryId>
  <PersonCategoryId>1082625c-94b7-4181-bf93-a9cf8de204fb</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>