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": "88f8ca0d-f81e-4d5e-93b5-6af7158c200f",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "d9dd7c5e-51c3-42c0-857e-365a570ea4ed",
  "Remarks": "sample string 3",
  "Id": "88f8ca0d-f81e-4d5e-93b5-6af7158c200f",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"88f8ca0d-f81e-4d5e-93b5-6af7158c200f","CategoryName":"sample string 2","ParentPersonCategoryId":"d9dd7c5e-51c3-42c0-857e-365a570ea4ed","Remarks":"sample string 3","Id":"88f8ca0d-f81e-4d5e-93b5-6af7158c200f","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">88f8ca0d-f81e-4d5e-93b5-6af7158c200f</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>d9dd7c5e-51c3-42c0-857e-365a570ea4ed</ParentPersonCategoryId>
  <PersonCategoryId>88f8ca0d-f81e-4d5e-93b5-6af7158c200f</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": "5cb9021d-796a-4ba6-9a26-b2b686f9ec10",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "0a82234d-6c91-4315-bd01-7684bc1a158a",
  "Remarks": "sample string 3",
  "Id": "5cb9021d-796a-4ba6-9a26-b2b686f9ec10",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"5cb9021d-796a-4ba6-9a26-b2b686f9ec10","CategoryName":"sample string 2","ParentPersonCategoryId":"0a82234d-6c91-4315-bd01-7684bc1a158a","Remarks":"sample string 3","Id":"5cb9021d-796a-4ba6-9a26-b2b686f9ec10","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">5cb9021d-796a-4ba6-9a26-b2b686f9ec10</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>0a82234d-6c91-4315-bd01-7684bc1a158a</ParentPersonCategoryId>
  <PersonCategoryId>5cb9021d-796a-4ba6-9a26-b2b686f9ec10</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>