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": "4fcb3659-0d7c-4ce7-8245-913bf678ebe8",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "e957ffdd-ee2b-4ce2-af52-7b22b1566bb2",
  "Remarks": "sample string 3",
  "Id": "4fcb3659-0d7c-4ce7-8245-913bf678ebe8",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"4fcb3659-0d7c-4ce7-8245-913bf678ebe8","CategoryName":"sample string 2","ParentPersonCategoryId":"e957ffdd-ee2b-4ce2-af52-7b22b1566bb2","Remarks":"sample string 3","Id":"4fcb3659-0d7c-4ce7-8245-913bf678ebe8","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">4fcb3659-0d7c-4ce7-8245-913bf678ebe8</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>e957ffdd-ee2b-4ce2-af52-7b22b1566bb2</ParentPersonCategoryId>
  <PersonCategoryId>4fcb3659-0d7c-4ce7-8245-913bf678ebe8</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": "c8beab6b-7015-424d-bcf2-583baba3fac0",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "f5555d9d-8d62-41c9-9b59-a0475c150d1a",
  "Remarks": "sample string 3",
  "Id": "c8beab6b-7015-424d-bcf2-583baba3fac0",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"c8beab6b-7015-424d-bcf2-583baba3fac0","CategoryName":"sample string 2","ParentPersonCategoryId":"f5555d9d-8d62-41c9-9b59-a0475c150d1a","Remarks":"sample string 3","Id":"c8beab6b-7015-424d-bcf2-583baba3fac0","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">c8beab6b-7015-424d-bcf2-583baba3fac0</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>f5555d9d-8d62-41c9-9b59-a0475c150d1a</ParentPersonCategoryId>
  <PersonCategoryId>c8beab6b-7015-424d-bcf2-583baba3fac0</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>