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": "b367a62f-7bb0-4af9-b513-37bcef133367",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "c1a2a5aa-c749-4806-a406-1148ba3c92ec",
  "Remarks": "sample string 3",
  "Id": "b367a62f-7bb0-4af9-b513-37bcef133367",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"b367a62f-7bb0-4af9-b513-37bcef133367","CategoryName":"sample string 2","ParentPersonCategoryId":"c1a2a5aa-c749-4806-a406-1148ba3c92ec","Remarks":"sample string 3","Id":"b367a62f-7bb0-4af9-b513-37bcef133367","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">b367a62f-7bb0-4af9-b513-37bcef133367</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>c1a2a5aa-c749-4806-a406-1148ba3c92ec</ParentPersonCategoryId>
  <PersonCategoryId>b367a62f-7bb0-4af9-b513-37bcef133367</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": "d604765b-23ee-4a83-b6d4-d802f65a3cc1",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "9a3abf61-389d-4f2d-a7d7-dcdae1ecc381",
  "Remarks": "sample string 3",
  "Id": "d604765b-23ee-4a83-b6d4-d802f65a3cc1",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"d604765b-23ee-4a83-b6d4-d802f65a3cc1","CategoryName":"sample string 2","ParentPersonCategoryId":"9a3abf61-389d-4f2d-a7d7-dcdae1ecc381","Remarks":"sample string 3","Id":"d604765b-23ee-4a83-b6d4-d802f65a3cc1","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">d604765b-23ee-4a83-b6d4-d802f65a3cc1</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>9a3abf61-389d-4f2d-a7d7-dcdae1ecc381</ParentPersonCategoryId>
  <PersonCategoryId>d604765b-23ee-4a83-b6d4-d802f65a3cc1</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>