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": "a43c5430-4691-4cc0-8cec-d9a2e5627e0a",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "e5210e4d-4dab-441a-8038-1cbecb6c004f",
  "Remarks": "sample string 3",
  "Id": "a43c5430-4691-4cc0-8cec-d9a2e5627e0a",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"a43c5430-4691-4cc0-8cec-d9a2e5627e0a","CategoryName":"sample string 2","ParentPersonCategoryId":"e5210e4d-4dab-441a-8038-1cbecb6c004f","Remarks":"sample string 3","Id":"a43c5430-4691-4cc0-8cec-d9a2e5627e0a","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">a43c5430-4691-4cc0-8cec-d9a2e5627e0a</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>e5210e4d-4dab-441a-8038-1cbecb6c004f</ParentPersonCategoryId>
  <PersonCategoryId>a43c5430-4691-4cc0-8cec-d9a2e5627e0a</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": "99760df0-409b-4edf-9959-9b9236509541",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "d3ff91c0-1eb4-4a87-bfaa-4596678383d9",
  "Remarks": "sample string 3",
  "Id": "99760df0-409b-4edf-9959-9b9236509541",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"99760df0-409b-4edf-9959-9b9236509541","CategoryName":"sample string 2","ParentPersonCategoryId":"d3ff91c0-1eb4-4a87-bfaa-4596678383d9","Remarks":"sample string 3","Id":"99760df0-409b-4edf-9959-9b9236509541","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">99760df0-409b-4edf-9959-9b9236509541</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>d3ff91c0-1eb4-4a87-bfaa-4596678383d9</ParentPersonCategoryId>
  <PersonCategoryId>99760df0-409b-4edf-9959-9b9236509541</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>