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": "8e2e5055-984b-4aea-932e-df6f15cafcf6",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "057465e4-71b0-41a8-a9bf-217b37ff08da",
  "Remarks": "sample string 3",
  "Id": "8e2e5055-984b-4aea-932e-df6f15cafcf6",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"8e2e5055-984b-4aea-932e-df6f15cafcf6","CategoryName":"sample string 2","ParentPersonCategoryId":"057465e4-71b0-41a8-a9bf-217b37ff08da","Remarks":"sample string 3","Id":"8e2e5055-984b-4aea-932e-df6f15cafcf6","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">8e2e5055-984b-4aea-932e-df6f15cafcf6</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>057465e4-71b0-41a8-a9bf-217b37ff08da</ParentPersonCategoryId>
  <PersonCategoryId>8e2e5055-984b-4aea-932e-df6f15cafcf6</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": "84de9638-cb55-4350-82dc-c52f04645026",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "84aa4c23-b5f2-46b7-917a-58f9ffa9c33c",
  "Remarks": "sample string 3",
  "Id": "84de9638-cb55-4350-82dc-c52f04645026",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"84de9638-cb55-4350-82dc-c52f04645026","CategoryName":"sample string 2","ParentPersonCategoryId":"84aa4c23-b5f2-46b7-917a-58f9ffa9c33c","Remarks":"sample string 3","Id":"84de9638-cb55-4350-82dc-c52f04645026","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">84de9638-cb55-4350-82dc-c52f04645026</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>84aa4c23-b5f2-46b7-917a-58f9ffa9c33c</ParentPersonCategoryId>
  <PersonCategoryId>84de9638-cb55-4350-82dc-c52f04645026</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>