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": "715731ac-27fa-45f8-b95b-c57f7ab03eeb",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "cd3e0ca8-e430-4adb-900d-30abc7bc8a80",
  "Remarks": "sample string 3",
  "Id": "715731ac-27fa-45f8-b95b-c57f7ab03eeb",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"715731ac-27fa-45f8-b95b-c57f7ab03eeb","CategoryName":"sample string 2","ParentPersonCategoryId":"cd3e0ca8-e430-4adb-900d-30abc7bc8a80","Remarks":"sample string 3","Id":"715731ac-27fa-45f8-b95b-c57f7ab03eeb","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">715731ac-27fa-45f8-b95b-c57f7ab03eeb</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>cd3e0ca8-e430-4adb-900d-30abc7bc8a80</ParentPersonCategoryId>
  <PersonCategoryId>715731ac-27fa-45f8-b95b-c57f7ab03eeb</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": "2fa1e6e9-1d13-4574-926f-e1b058be386c",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "5cc82b47-6caa-4064-a13d-10e8b1d04ac0",
  "Remarks": "sample string 3",
  "Id": "2fa1e6e9-1d13-4574-926f-e1b058be386c",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"2fa1e6e9-1d13-4574-926f-e1b058be386c","CategoryName":"sample string 2","ParentPersonCategoryId":"5cc82b47-6caa-4064-a13d-10e8b1d04ac0","Remarks":"sample string 3","Id":"2fa1e6e9-1d13-4574-926f-e1b058be386c","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">2fa1e6e9-1d13-4574-926f-e1b058be386c</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>5cc82b47-6caa-4064-a13d-10e8b1d04ac0</ParentPersonCategoryId>
  <PersonCategoryId>2fa1e6e9-1d13-4574-926f-e1b058be386c</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>