POST api/v1/personcategories
Request Information
URI Parameters
None.
Body Parameters
PersonCategoryDetails| Name | 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": "b1a7d644-0cfe-4e0e-b136-9c263753a6ad",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "6d73f371-c413-4232-9f79-c1389abfc394",
"Remarks": "sample string 3",
"Id": "b1a7d644-0cfe-4e0e-b136-9c263753a6ad",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"b1a7d644-0cfe-4e0e-b136-9c263753a6ad","CategoryName":"sample string 2","ParentPersonCategoryId":"6d73f371-c413-4232-9f79-c1389abfc394","Remarks":"sample string 3","Id":"b1a7d644-0cfe-4e0e-b136-9c263753a6ad","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">b1a7d644-0cfe-4e0e-b136-9c263753a6ad</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>6d73f371-c413-4232-9f79-c1389abfc394</ParentPersonCategoryId> <PersonCategoryId>b1a7d644-0cfe-4e0e-b136-9c263753a6ad</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PersonCategoryDetails| Name | 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": "c7d9c2c0-412f-407d-b183-bbd8e5819170",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "ae49c409-9b6c-42f8-9fb7-5763838959b5",
"Remarks": "sample string 3",
"Id": "c7d9c2c0-412f-407d-b183-bbd8e5819170",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"c7d9c2c0-412f-407d-b183-bbd8e5819170","CategoryName":"sample string 2","ParentPersonCategoryId":"ae49c409-9b6c-42f8-9fb7-5763838959b5","Remarks":"sample string 3","Id":"c7d9c2c0-412f-407d-b183-bbd8e5819170","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">c7d9c2c0-412f-407d-b183-bbd8e5819170</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>ae49c409-9b6c-42f8-9fb7-5763838959b5</ParentPersonCategoryId> <PersonCategoryId>c7d9c2c0-412f-407d-b183-bbd8e5819170</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>