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": "59a34225-2946-42f0-aa74-797945f155e7",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "c0dbe600-f46e-40ff-8a61-eee4ce2dcee2",
  "Remarks": "sample string 3",
  "Id": "59a34225-2946-42f0-aa74-797945f155e7",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"59a34225-2946-42f0-aa74-797945f155e7","CategoryName":"sample string 2","ParentPersonCategoryId":"c0dbe600-f46e-40ff-8a61-eee4ce2dcee2","Remarks":"sample string 3","Id":"59a34225-2946-42f0-aa74-797945f155e7","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">59a34225-2946-42f0-aa74-797945f155e7</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>c0dbe600-f46e-40ff-8a61-eee4ce2dcee2</ParentPersonCategoryId>
  <PersonCategoryId>59a34225-2946-42f0-aa74-797945f155e7</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": "89ec4f70-e507-4d21-a2bf-2c1a0e043bad",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "30d5d561-3224-4a2e-a290-7d2cb32f11ec",
  "Remarks": "sample string 3",
  "Id": "89ec4f70-e507-4d21-a2bf-2c1a0e043bad",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"89ec4f70-e507-4d21-a2bf-2c1a0e043bad","CategoryName":"sample string 2","ParentPersonCategoryId":"30d5d561-3224-4a2e-a290-7d2cb32f11ec","Remarks":"sample string 3","Id":"89ec4f70-e507-4d21-a2bf-2c1a0e043bad","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">89ec4f70-e507-4d21-a2bf-2c1a0e043bad</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>30d5d561-3224-4a2e-a290-7d2cb32f11ec</ParentPersonCategoryId>
  <PersonCategoryId>89ec4f70-e507-4d21-a2bf-2c1a0e043bad</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>