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": "4cdacebf-e89e-49b2-9e91-f548ba6c27d7",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "ceba70f0-d7c0-440c-abbb-550e7e4b80ba",
  "Remarks": "sample string 3",
  "Id": "4cdacebf-e89e-49b2-9e91-f548ba6c27d7",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"4cdacebf-e89e-49b2-9e91-f548ba6c27d7","CategoryName":"sample string 2","ParentPersonCategoryId":"ceba70f0-d7c0-440c-abbb-550e7e4b80ba","Remarks":"sample string 3","Id":"4cdacebf-e89e-49b2-9e91-f548ba6c27d7","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">4cdacebf-e89e-49b2-9e91-f548ba6c27d7</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>ceba70f0-d7c0-440c-abbb-550e7e4b80ba</ParentPersonCategoryId>
  <PersonCategoryId>4cdacebf-e89e-49b2-9e91-f548ba6c27d7</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": "d2b3a3dc-aedf-4f64-93f9-25bfb8ae858c",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "f2a8b59d-7c36-4a4c-b53f-5414e1567270",
  "Remarks": "sample string 3",
  "Id": "d2b3a3dc-aedf-4f64-93f9-25bfb8ae858c",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"d2b3a3dc-aedf-4f64-93f9-25bfb8ae858c","CategoryName":"sample string 2","ParentPersonCategoryId":"f2a8b59d-7c36-4a4c-b53f-5414e1567270","Remarks":"sample string 3","Id":"d2b3a3dc-aedf-4f64-93f9-25bfb8ae858c","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">d2b3a3dc-aedf-4f64-93f9-25bfb8ae858c</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>f2a8b59d-7c36-4a4c-b53f-5414e1567270</ParentPersonCategoryId>
  <PersonCategoryId>d2b3a3dc-aedf-4f64-93f9-25bfb8ae858c</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>