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": "7bd64ccb-66fb-44c0-be61-fd574cf48d3a",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "92284741-b44e-444a-9a2f-c13f753bc9c1",
  "Remarks": "sample string 3",
  "Id": "7bd64ccb-66fb-44c0-be61-fd574cf48d3a",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"7bd64ccb-66fb-44c0-be61-fd574cf48d3a","CategoryName":"sample string 2","ParentPersonCategoryId":"92284741-b44e-444a-9a2f-c13f753bc9c1","Remarks":"sample string 3","Id":"7bd64ccb-66fb-44c0-be61-fd574cf48d3a","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">7bd64ccb-66fb-44c0-be61-fd574cf48d3a</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>92284741-b44e-444a-9a2f-c13f753bc9c1</ParentPersonCategoryId>
  <PersonCategoryId>7bd64ccb-66fb-44c0-be61-fd574cf48d3a</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": "c5589ea4-3910-48f5-9159-c64c0031bc73",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "89bcc917-6264-4980-ac10-78dc12985b75",
  "Remarks": "sample string 3",
  "Id": "c5589ea4-3910-48f5-9159-c64c0031bc73",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"c5589ea4-3910-48f5-9159-c64c0031bc73","CategoryName":"sample string 2","ParentPersonCategoryId":"89bcc917-6264-4980-ac10-78dc12985b75","Remarks":"sample string 3","Id":"c5589ea4-3910-48f5-9159-c64c0031bc73","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">c5589ea4-3910-48f5-9159-c64c0031bc73</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>89bcc917-6264-4980-ac10-78dc12985b75</ParentPersonCategoryId>
  <PersonCategoryId>c5589ea4-3910-48f5-9159-c64c0031bc73</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>