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": "25c236c2-f2e7-4246-a095-a63ee7ca5ff4",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "9dc90430-b7d0-43f5-a352-4130caf512e2",
  "Remarks": "sample string 3",
  "Id": "25c236c2-f2e7-4246-a095-a63ee7ca5ff4",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"25c236c2-f2e7-4246-a095-a63ee7ca5ff4","CategoryName":"sample string 2","ParentPersonCategoryId":"9dc90430-b7d0-43f5-a352-4130caf512e2","Remarks":"sample string 3","Id":"25c236c2-f2e7-4246-a095-a63ee7ca5ff4","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">25c236c2-f2e7-4246-a095-a63ee7ca5ff4</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>9dc90430-b7d0-43f5-a352-4130caf512e2</ParentPersonCategoryId>
  <PersonCategoryId>25c236c2-f2e7-4246-a095-a63ee7ca5ff4</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": "a4e1a2f9-e8c8-4778-9c3a-346736986438",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "363c6794-0f99-4d0d-a0d3-893d1a17154a",
  "Remarks": "sample string 3",
  "Id": "a4e1a2f9-e8c8-4778-9c3a-346736986438",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"a4e1a2f9-e8c8-4778-9c3a-346736986438","CategoryName":"sample string 2","ParentPersonCategoryId":"363c6794-0f99-4d0d-a0d3-893d1a17154a","Remarks":"sample string 3","Id":"a4e1a2f9-e8c8-4778-9c3a-346736986438","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">a4e1a2f9-e8c8-4778-9c3a-346736986438</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>363c6794-0f99-4d0d-a0d3-893d1a17154a</ParentPersonCategoryId>
  <PersonCategoryId>a4e1a2f9-e8c8-4778-9c3a-346736986438</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>