POST api/v1/personcategories
Inserts the specified personCategory details.
Request Information
URI Parameters
None.
Body Parameters
The personCategory details.
PersonCategoryDetailsName | Description | Type | Additional 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": "e62d9b47-4226-4a9d-a29b-31075fc637eb", "CategoryName": "sample string 2", "ParentPersonCategoryId": "5273ac98-d906-4245-bc1b-0bb307f11156", "Remarks": "sample string 3", "Id": "e62d9b47-4226-4a9d-a29b-31075fc637eb", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"e62d9b47-4226-4a9d-a29b-31075fc637eb","CategoryName":"sample string 2","ParentPersonCategoryId":"5273ac98-d906-4245-bc1b-0bb307f11156","Remarks":"sample string 3","Id":"e62d9b47-4226-4a9d-a29b-31075fc637eb","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">e62d9b47-4226-4a9d-a29b-31075fc637eb</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>5273ac98-d906-4245-bc1b-0bb307f11156</ParentPersonCategoryId> <PersonCategoryId>e62d9b47-4226-4a9d-a29b-31075fc637eb</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PersonCategoryDetailsName | Description | Type | Additional 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": "cdf7b0cc-aa05-41ec-8efc-23c74342bb8d", "CategoryName": "sample string 2", "ParentPersonCategoryId": "a884b451-116d-4992-a3f3-6ad013ae9535", "Remarks": "sample string 3", "Id": "cdf7b0cc-aa05-41ec-8efc-23c74342bb8d", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"cdf7b0cc-aa05-41ec-8efc-23c74342bb8d","CategoryName":"sample string 2","ParentPersonCategoryId":"a884b451-116d-4992-a3f3-6ad013ae9535","Remarks":"sample string 3","Id":"cdf7b0cc-aa05-41ec-8efc-23c74342bb8d","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">cdf7b0cc-aa05-41ec-8efc-23c74342bb8d</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>a884b451-116d-4992-a3f3-6ad013ae9535</ParentPersonCategoryId> <PersonCategoryId>cdf7b0cc-aa05-41ec-8efc-23c74342bb8d</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>