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": "c2d89070-b315-44f2-bf99-24fba06d3a73",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "902d3922-2364-494b-8d54-d3f1107cb0df",
  "Remarks": "sample string 3",
  "Id": "c2d89070-b315-44f2-bf99-24fba06d3a73",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"c2d89070-b315-44f2-bf99-24fba06d3a73","CategoryName":"sample string 2","ParentPersonCategoryId":"902d3922-2364-494b-8d54-d3f1107cb0df","Remarks":"sample string 3","Id":"c2d89070-b315-44f2-bf99-24fba06d3a73","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">c2d89070-b315-44f2-bf99-24fba06d3a73</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>902d3922-2364-494b-8d54-d3f1107cb0df</ParentPersonCategoryId>
  <PersonCategoryId>c2d89070-b315-44f2-bf99-24fba06d3a73</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": "9b67643a-74f3-4654-be01-f446f21a3340",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "c143cd34-9419-48c0-abf0-2cf66441569e",
  "Remarks": "sample string 3",
  "Id": "9b67643a-74f3-4654-be01-f446f21a3340",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"9b67643a-74f3-4654-be01-f446f21a3340","CategoryName":"sample string 2","ParentPersonCategoryId":"c143cd34-9419-48c0-abf0-2cf66441569e","Remarks":"sample string 3","Id":"9b67643a-74f3-4654-be01-f446f21a3340","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">9b67643a-74f3-4654-be01-f446f21a3340</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>c143cd34-9419-48c0-abf0-2cf66441569e</ParentPersonCategoryId>
  <PersonCategoryId>9b67643a-74f3-4654-be01-f446f21a3340</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>